Variables - Auto populate

Vengeful
Mega Sage

Hello,

 

I have 2 variables for a specific request item that should be auto populate.

Valid from should be auto populate on the date of creation/submission.

Valid to is dependent to Validity.

If I select 1 week, the Valid to date should automatically populated based on the user’s selection.

Merza_0-1692670351884.png

Merza_1-1692670455698.png

 

How can I configure that kind of setup?

 

1 ACCEPTED SOLUTION

@Ankur Bawiskar 

I tried to add this on default value javascript:gs.nowDateTime() and it worked.

Merza_0-1692682585082.png

My problem now is the Valid to.

View solution in original post

15 REPLIES 15

Jim Coyne
Kilo Patron

Is this for a Record Producer?  I would think that you do not even need the "Valid from" or "Valid to" variables.  Just set the "Valid from" date from the "Script" field in the RP and then the "Valid to" based on the "Validity" field.

 

If your users cannot really select a date, don't give them the variables on screen.