Clear all fields (except 3) when a different option button is sele

D

Delnang

I have a form where there are 3 different option buttons at top
(fieldname=Type with rent, own, sublet as choices). When Type is changed
from one value to another (i.e. from rent to own), I'd like all fields in the
form to be set back to default/null/blank/clear?? except three other fields
named, (Name, ID, and Date).

Is this possible? A rule, onclickevent? Can someone help me with any ideas
or code?

Thanks,
A
 
S

Swathi (GGK Tech)

Hi,
Set a rule on the option button to set the field values (Except the other
three fields) to blank.
1.GO to button properties.
2.Click Rules and then click add.
3.Click Add Action.
4.Select set a field’s value in the Action drop down.
5.Select a field other than the three fields.
6.Click ok.
7.Repeat the steps 3 to 6 for all fields.
 
D

Delnang

Thank you Swathi, this is what I started doing, but realized I was going to
set a long list of fields to null. I just wanted to be sure that this was
the most efficient way to proceed.

Thank you,
Angie
 
S

Swathi (GGK Tech)

Hi,
Prepare an xml file with the fields xpaths. Use this xml in the code. Add an
on after change event for the option button and by using the for loop and the
xpaths xml easily you can set the field values to null/empty.
 
D

Delnang

Swathi,
How do you go about this? I understand what you are telling me, but not
sure how.
Angie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top