Forums

Erase data typed into TextBox field upon changing DropDown menu selection

dougwoody 08 Jun, 2017
Hey ChronoForum,

I'm a huge fan of ChronoForms5. I've been using it for the past few years and I'm delighted to say that I haven't found something I couldn't solve until right now. It could just be my lack of programming knowledge but I'm trying to figure out how I can clear information entered into a text box through an event triggered by a dropdown menu selection change.

On load, the textbox is hidden but can be made visible through dropdown menu selection. If a user were to type anything into that text box, then change their mind and use one of the options presented in the dropdown menu (which causes the textbox to become hidden again), whatever they typed into the textbox would still remain. And that's what I want to erase: any information typed into the textbox upon changing dropdown menu selection.

You all have been a tremendous help to me in the past and I hope that you can be of tremendous help again, with this form issue I've come across.

Thank you!
GreyHead 09 Jun, 2017
Hi dougwoody,

Is the problem that this data is being submitted? Or that it is still there if the drop-down option is reselected?

If you set the textbox to be disabled with the same condition as the parent is hidden that should stop the data from being submitted.

Bob
This topic is locked and no more replies can be posted.