Restrict form submission when the script include return a value to onsubmit client script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2024 08:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2024 01:46 AM
@Sangeetha7996 - Understanding your requirement- In script include - you write logic to check if the sys_id record producer is present in that Business Service table or not. If yes then should return true else return false.
Next in On change Client script - on change of variable you will select Business Service.
where call the script include function using Glide ajax and get response. If that response it is true then write "return false;" to restrict form submission. Else allow to submit form by writing "return true;". Hope it helps.
Please mark my response as helpful/correct if it helps.
Regards,
Priyanka Salunke