Attachment has to be mandatory on portal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2023 02:22 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2023 02:39 AM
@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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-17-2023 03:17 AM
@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