- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2023 01:37 AM
Hi,
I have requirement to show an alert message on the form, if user clicks on a button. In "sn_vul_vulnerable_item" form I need to make the "Assigned to" field as mandatory when user clicks on a button "Request exception". I made it using onSubmit client script, but it is working only when user clicked on save or update button. I need to make the "Assigned to" as mandatory if user clicks on "Request exception". How can I do that?
Below are the attachments:
Currently I made Assigned to field as mandatory using dictionary override. This is also not working.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2023 08:19 AM
Hi Uday,
Thanks for the reply.
I already have the OOTB UI action named "Request Exception". In that UI action script I have added your script, not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2023 08:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2023 08:58 AM
Hi Uday,
That's working.
But I got another issue. When clicked on button "request exception" it will population a dialogue box to fill some field. In current scenario, when clicked on the button, the alert message was showing and pop window is opening asking to fill the fields, Which is moving to next state without filling "assigned_to" field. How can I abort displaying of pop up if "assigned_to" empty.
and immediately showing popup window also:
If I fill above fields form is saving with empty "assigned_to".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2023 09:04 AM
Send me the script @Devi12 so that i can debug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2023 09:08 AM
It's working after using g_form.setAbortAction(true);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2023 09:33 AM
Happy to hear @Devi12