Help for Date comparison for my custom Change request form

sony8
Tera Contributor

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?

1 REPLY 1

Akash4
Kilo Sage
Kilo Sage

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.

 

Regards, Akash
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.