Jump to content
Sign in to follow this  
js22

Disable Fields

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Thanks,

I'll toy around with the code. I looked at the attachments and I think between them all I can get what I'm looking for.

js22

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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