How to set only the future dates to variable

Thrupthi
Tera Expert

Hi,

I have a field called "Expected order delivery date" , it means this date field should be made to select only today's and future days, its should be restricted to select the Past dates. How can i change this only for one catalog item variable to select the future dates.

Can someone please help me here.

15 REPLIES 15

Sure

 

i believe you are checking on portal.

have you set "Run scripts in UI type" to ALL.

if you go to your ui policy and check the tab "script" you will find that field (Run scripts in UI type) .

let me know if still it does not help.

Hi Harsha,

 

have you set "Run scripts in UI type" to ALL - yes i have set this 

I am checking it from the portal end, and its not working. Do i need to set any UI actions? in order to run this.

find_real_file.png

 

 

 

find_real_file.png

no need to mention anything in ui polcy action.

it should work. i also validated on my PDI and its giving me an alert on portal if i select the past date.

 

kindly try to see if any other script is restricting it. its should work perfectly

can you change the data type variable to data/time type variable?

then it will work.