Regarding onsumbit client script

Apoorva A H
Tera Contributor

 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:

    1. "Uploading supporting document is mandatory"
11 REPLIES 11

Danish Bhairag2
Tera Sage

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

 

Can i use on submit client script for the particular question.

 

 

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

 

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