calling getActionName to get a button action, it return 'undefined'.. not sure what is not right

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2013 10:55 PM
Hi,
Been spending so much time troubleshooting the approval button. Not sure what is not right.. there's a client script that make Comment field mandatory when reject an approval. That seems to not working for some reason.. I log a alert to check what it actually return for g_form.getActionName. The value is 'undefined', that explain why it doesn't set the 'comment' field mandatory. What I am not sure is why it return 'undefined' instead of the button action. I check the reject button action name is 'reject'. Does anyone experience this before? For rejecting a change request, this button works correctly but for rejecting a record from custom table I created this button doesn't work. Anyone has any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-10-2013 09:05 AM
Instead of a client script, try a Data Policy or UI Policy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-10-2013 12:53 PM
g_form.getActionName() instead of g_form.getActionName?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2014 11:16 PM
Hi There,
I am facing the same issue now, spent almost a week on this.
Did you happen to find a solution for it?
Mateen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2014 05:52 AM
I have resolved this issue. If somebody is facing this issue drop me a mail, I will try to help you.