cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
anom217
Level 8

Reset text field and property value

In a Basic MSI project, I have a dialog with a text edit field. If the user presses Back and then Next, I want the text field to be blank if the user had entered something in it before pressing Back. I have a property associated with the content of the text field, so I assumed I would have to reset the property value, but I'm not sure how to do this.

Is there a way to set an existing property value in a Custom Action?

I would like the property to be reset to an empty string, so the text field looks blank, but using the SetProperty type of custom action doesn't allow a blank value. Is there another way to reset the value of the text field and its corresponding property?
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

Please see the MSI help topic "SetProperty ControlEvent": entering {} as the argument in a set-property control event stands for emptying/unsetting the property.
0 Kudos
anom217
Level 8

That was exactly what I was looking for, thanks.
0 Kudos