Restrict due date filed on control attestation form.

AhmerFaraz0001
Tera Contributor

I want to restrict due date filed on control attestation form that is new filed and put a validation when user submit the form it will check the date enter is 1 year from the date of creation if is under one year it allow to submit the form otherwise give an error select the date under one year before submiiion. Also, I can't find the below sumbit button in ui action.
AhmerFaraz0001_0-1793250160767.png

 

2 REPLIES 2

Ankur Bawiskar
Tera Patron

@AhmerFaraz0001 

if it's a survey form then client script or UI policy doesn't run there

here is a workaround

How do I limit the date field so that future dates cannot be selected for Assessment Metrics? 

💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Sandesh Powar
Tera Guru

Hi @AhmerFaraz0001 ,

You can refer to the following discussion for guidance on restricting the Due Date field on a GRC Control Attestation form and validating the date before submission.

Reference: How to Prevent Past Date Selection on a GRC Control Attestation

This should help you explore the date validation approach for your requirement.

I hope this helps! If this resolves your query, please mark the response as helpful and accept it as the solution.

Regards,
Sandesh Powar
ServiceNow Rising Star