Jump to content
Server Maintenance This Week. ×

Disable Fields


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

Recommended Posts

Hello,

I have a quick question. I have a layout that has two fields on it. Above those two fields I have a button. What I would like to do is have it so when you click the button it unlocks the two fields and allows data entry.

Is this possible? Before I converted to filemaker I was using MS Access and you could do conditional fields. So I would have a set of radio buttons and if Field1=0 then the fields are grayed out and if Field1=1 then they are not grayed out. This is the sort of thing I would like to do but if I do it with a script that's good enough for me.

Thanks

js22

Link to comment
Share on other sites

The button can just simply toggle the field to a boolean value. Then on each field, you can have it be a button that runs a script iwth passing a parameter.

If [flag]

   If [ Get (ScriptParameter) = field1 ]

     Go to Field [Field1]

   Else

     Go to Field [Field2]

   End If

Else

   Show custom Message ["Can not modify"]

End If

Or you can take a look at these methods.

Visibility technique

Raybaudi's permission sample

Link to comment
Share on other sites

This topic is 6222 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.