Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Make a field inaccessible based on flag


This topic is 6390 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Is there a way to make a particular field entry accessible or inacessible based on another flag field? Or better yet, is it possible to make layout items disappear or appear based on the flag?

Let me try to explain. I have a layout on which a user will check "Yes" or "No" on a flag field with radio buttons.

What I would like to do is make another field box either disappear or become inacessible in browse mode if the flag field is "No", and conversely appear or become accessible if the flag is "Yes".

However, I'm not sure how to approach this problem. Any nudge in the right direction would be most appreciated.

Posted (edited)

To make it disappear place a calculation field above it of the type "container". If the flag field = "no", the calculation will set it to the contents of a container field with storage set to global (I keep these types of global fields in a separate table). That field should be filled with a rectangle of the same colour as the background of the field you want to disappear.

On your original layout make that calculation field (container) a button by attaching a script to it: if flag = "yes" go to ...Name of field beneath the calculation/container field.

The field will be both invisible and inaccessible when the flag field is set to No, and visible and accessible when it is set to Yes.

Edited by Guest

This topic is 6390 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.