Update State with conditions

660 views
Skip to first unread message

besumm...@gmail.com

unread,
Oct 20, 2015, 10:03:10 AM10/20/15
to Fujitsu RunMyProcess Developer Community
Hello,
I have a javascript code that change the state of process when I click submit button:


id_state.setValue("Waiting...");
true;

But I want that this happens just all fields in screen are filled. If there is some field that is blank I don't want that change state, how I can do this?

besumm...@gmail.com

unread,
Oct 21, 2015, 5:40:12 AM10/21/15
to Fujitsu RunMyProcess Developer Community, besumm...@gmail.com
Somebody can help me?

Sweta Suman

unread,
Oct 21, 2015, 6:52:53 AM10/21/15
to suppor...@runmyprocess.com, besumm...@gmail.com
Hi,

You can make all field of Web Interface as required(validation rule in widget property). And in JS(pre-launch) you can check for all required field using-

if (RMPApplication.validate()) 
{
alert("Thank you");
true;  // call associated process
}
else
{
alert("You have not filled all fields.");
}

Hope this helps you.

On Wed, Oct 21, 2015 at 3:10 PM, <besumm...@gmail.com> wrote:
Somebody can help me?

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/7f7ed87c-5658-43b9-a478-4b6c7839bd54%40runmyprocess.com.



--
Thanks,
Sweta 
Fujitsu RunMyProcess

besumm...@gmail.com

unread,
Oct 21, 2015, 7:13:40 AM10/21/15
to Fujitsu RunMyProcess Developer Community, besumm...@gmail.com
Thanks friend ;)

See this topic, that I have another doubt but is more or less as this topic, try to help me if you can:

https://groups.google.com/a/runmyprocess.com/forum/?hl=en&fromgroups=#!topic/supportforum/8z5D-vlUlTo

Reply all
Reply to author
Forward
0 new messages