either one of the field is not filled ...block the order
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2026 03:05 AM
either the security group or attachment needs to be filled in. So I would need 1 of the 2 to be filled in before they can click order button?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2026 04:42 AM
function onSubmit() {
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2026 06:08 AM
You are using the variable type attachments and you are trying to fetch it on the client side so the script is not working ,instead use GlideAjax for getting the attachment count on the record and you can glide the attachments table as well.
Hope that Helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2026 03:48 AM
Use an onSubmit Client Script to control whether a request can be submitted. Add conditions to check if at least one of the required fields has a value. If any field is populated, return true to allow submission; otherwise, return false to prevent the request from being ordered.
Please verify the the below link for how to restrict the submission.
Hope that Helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2026 06:22 AM
Thank you ...its working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2026 04:00 AM
Hi @VinushaN0004809 ,
As others have suggested, an onSubmit() client script is the best way to do this. But yes users would have to click on the order button to for this validation to trigger. If you want to disable to order button itself, you might have use DOM which is not recommended.
Please mark my response as helpful if this helped you.
Regards,
Rishi.