Regarding onsumbit client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2023 11:18 PM
Code for and what UI type should i need to create an on-behalf leave I must add an attachment (any type of file is valid, encrypted or not encrypted). and I try to create an on-behalf leave without an attachment I can't submit the request and the following message appears:
- "Uploading supporting document is mandatory"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2023 11:21 PM
Hi @Apoorva A H ,
Due you want to check on submit of a form whether attachment is attached or not. Did not understood your question properly.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2023 11:32 PM
Can i use on submit client script for the particular question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2023 11:37 PM - edited 11-05-2023 11:49 PM
Hi @Apoorva A H ,
Yes u can use onSubmit script but be sure to add proper condition during which it should check for the attachment. else it will keep on executing whenever records are saved. For code u can refer samaksh response.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2023 11:46 PM
Hello @Apoorva A H
Yes you have to use onSubmit Client Script.
Plz mark my solution as Accept, If you find it helpful.
Regards,
Samaksh
