This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Reset text field and property value
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 20, 2010
02:05 PM
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?
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?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 20, 2010
02:18 PM
Please see the MSI help topic "SetProperty ControlEvent": entering {} as the argument in a set-property control event stands for emptying/unsetting the property.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 20, 2010
03:18 PM
That was exactly what I was looking for, thanks.