Attachment has to be mandatory on portal

Community Alums
Not applicable

Hi,

I was having a record producer where it consist of variable i.e., true or false when a user select true attachment has to be mandatory and when user select false attachment is not a mandatory and the attachment is disabled in portal using portal setting in record producer can anyone help me how to make the attachment mandatory only for true condition

 

2 REPLIES 2

psphanindrakuma
Tera Guru
Tera Guru

@Community Alums 

 

For this, Use onSubmit client script to check the variable true or false. if true, Check whether attachments with DOM manuplation. if none attached return false

 

Please mark my answer as correct and helpful if it solves your issue

 

Thanks,

Phanindra.

 

Community Alums
Not applicable

@psphanindrakuma can you please provide me the code i have seen the alert message showing some text like need to upload document rather than this i need the attachment has to be mandatory