Require comment in Application History widget when rejection?

60 views
Skip to first unread message

tedd...@nana.com

unread,
Jun 9, 2015, 12:24:28 PM6/9/15
to suppor...@runmyprocess.com
Hi,

Is there a way to require comments with the Application History widget only when rejecting a request?
I didn't see a way to identity the comment textarea html item for javascript to check.

Thanks!

Sweta Suman

unread,
Jun 10, 2015, 6:33:39 AM6/10/15
to suppor...@runmyprocess.com
Hi,

You can write below code in "Pre-launch script" of Reject button to make it mandatory.

var comments = id_history.getComment(); // id_history is the identifier of history widget
if (comments == null)
 {
RMPApplication.showErrorBox("Action Required","Please enter Comments");
false;
}
else 
{
RMPApplication.showErrorBox("Message","Thank You");
true;
}

Hope this helps you.



--
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/06bdc72f-8979-4e2a-b091-7af543f19bcd%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.



--
Thanks,
Sweta 
Fujitsu RunMyProcess Support

tedd...@nana.com

unread,
Jun 11, 2015, 3:30:43 PM6/11/15
to suppor...@runmyprocess.com, tedd...@nana.com
Thank you, Sweta.
Reply all
Reply to author
Forward
0 new messages