return false is not working in UI Action

kinjal1
Kilo Expert

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 scriptfind_real_file.png

Thanks in Advance

6 REPLIES 6

Hi Abhishek, here is the code

 

find_real_file.png

shloke04
Kilo Patron

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:

 

find_real_file.png

 

Let me know if it does not works.

 

Hope this help. Please mark the answer as helpful/correct based on impact.

 

Regards,

Shloke

 

 

 

 

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke