Prevent Dates from being changed

  • 19 September 2017
  • 6 replies
  • 2 views

Badge +1

Hi,

Is there a way to disable or prevent a date column from being changed after the user enters the date and saves the form?

See image below.  For example ....I would like the "Planned Start Date" to be disable after the user saves the data

207890_pastedImage_1.png

Thanks in advance ! 


6 replies

Badge +16

Can you add an expression to the enabled section of the control when ID is not null AND {Self} is not null? Can't test at this moment as not at machine but let me know how you go?

Badge +6

As suggested by Cassy Freeman , add the following condition

not(isNullOrEmpty({Self})) && not(isNullOrEmpty({ItemProperty:ID}))

but instead of adding it as an expression to the enabled section of the control add it to a new rule because the former does not have the name control tab (using which you will add the {Self} property)

Badge +16

Ah good shout!! Without sitting at my machine I was just trying to imagine what it would look like!! 

Badge +6

Still you did a pretty good job with the logic !!

Badge +1

Thank you all for the help, it works perfectly ! 

Badge +6

Glad to hear that !

Could you please update the thread as solved.

Reply