Skip to main content
samadritam1018
Participating Frequently
Feb 10, 2023 11:18 AM UTC
Question

On choosing a different dropdown value than the previous one, I want the rest of the text boxes to become empty for me to fill in new values.

In a form, Suppose I have 3 values in my dropdown- A,B,C.  I have chosen A and filled the remaining text boxes accordingly, but I want to change the dropdown value to B. On changing i want the remaining values of the boxes to be empty so I can fill them again. How can I achieve this?

2 replies

harshitb6843
Brainy
Feb 10, 2023 11:47 AM UTC

Inside a!save, you can compare the save!value with the actual where this value will be saved and if it is different, then set the textFields to null!

Participating Frequently
Feb 14, 2023 6:48 AM UTC

On choosing the different value just save all the other form values to null in "saveInto" field with the help of a!save() function.