return false is not working in UI Action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2019 03:31 PM
Hi All,
Requirement: When user hit on Context menu link, Alert message shows some required fields and without that user should not be able to save the form. But here I am able to save the form without putting any value in these required fields.
In below script line no 17 Return false is not working.
Addition : I have also configured UI Policy to make field mandatory.
Issue is if I don't fill any value in these fields, still form getting save.
Please help me with script
Thanks in Advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2019 09:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2019 11:22 PM
Hi,
You need to check for abort submission after using "gsftSubmit". Kindly follow the below steps:
- Comment out line 13 and Line 14 in your code.
- Comment out line number 18, 19 and 20 in your code.
- After Line 22 write in the next line as return false;
- Make sure in Line number 22 in gsftSubmit, action name are same as defined above in the Action Name field of the UI action form.
This should work. Please see an example below where I have checked for one of the Description field on the Incident form and it's working:
Let me know if it does not works.
Hope this help. Please mark the answer as helpful/correct based on impact.
Regards,
Shloke
Regards,
Shloke