Hide Rule

Does anyone know of a way to Hide a field based on Control ID not on the field name itself?

I’m looking to have a set of 3 combo boxes to have different options but to save to the same field… *only one of the 3 combo boxes will show based on what is set to a different field… does anyone know a way to achieve this?

Jerad, can you provide some more context on this?

Really my end goal is to have a combo box’s values in its list to be different based off of what is selected in a different field…

My first thought was to create 3 combo boxes… all saved to the same field.
ComplaintType_c

And i would only show one of them based off another selection.

image

You can change control properties via event and property-set widgets.

Use your component’s ID… you could set their default state to be Hidden.

Then in an event, based on a user selection in your first control (so, an on column changed event, perhaps), add a property-set widget.

image

Put your control’s ID here:
image

Add a property like below to change the hidden property to false:
image

1 Like

Thanks again… i will try this out… is there a unhide prop?

Meaning if i defaulted all 3 to hidden but only showed the correct one based off a event?

well… the property is “hidden”… So you can play with both sides of that boolean.

If you set that to TRUE, then its hidden.
If you set it to FALSE, then it will be visible.

Not really sure I understand the question… but if you have (3) components A, B, & C.

You set them all to hidden by default (in the control’s properties). They should be all hidden when you load the form.

Then in your event, you can add a property-set to update Control B to hidden = false… and Control B will appear. But controls A & C should remain hidden.

1 Like

I think you could also accomplish the same thing by tying your three combo boxes to transview fields and then add an event before save to update the field you want to write to with whichever transview field got populated. This would let you do the field hiding using row rules instead of event widgets.

1 Like