Help for Date comparison for my custom Change request form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 02:42 AM
Hello All,
There are two fields on my Change Request form.
Corrected status (choices Yes/No)
Created in Awaiting state Date
In my script there is a String Field called Rationale.
i got stuck how to write the Editability of Rationale field:
Condition 1:
Corrected status = Yes AND
Created in Awaiting State Date <= 12 months
Donot display Rationale field
Condition2 :
Corrected status = No AND
Created in Awaiting State Date <= 18 months
Display Rationale field
what to use for validation?
how to check months comparisions for Created in Awaiting state date field complete my validation?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 03:06 AM - edited 10-28-2024 03:06 AM
If the condition2 can be skipped (meaning if condition1 is not satisfied then Rationale field is displayed) the you can create 1 UI Policy on Condition1 with 1 Action on Rationale field plus select Reverse if False
If Condtion2 is required then you can create 2 UI Policies with 1 Action in each for Rationale visibility. This time click on Isolate script & Reverse if False checkboxes on both.
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.