Jump to content

Hiding a Check Box or Radio Button


Recommended Posts

Posted

Good day, need some guidance. 

I have a Field: "Document Type"

Options: "Picking Slip" or "Transfer"

Then I placed another instance on the "Document Type" field,

I configured the hide object on the second instance to only show if a selection was made on the instance.

Then, I configured the hide object on the first instance to show only if there is no selection. 

My issue is that I can't get the first instance to hide once a selection is made. I have tried "isempty" and "not isempty" with the field name and with the "self" keyword. 

What am I doing wrong? 

FYI... The idea is that once a user makes a document type selection, they can not change it unless they start over.

Thanks,

jmart

Posted

IsEmpty ( Self ) and not IsEmpty ( Self ) should work. But hiding will occur only after you exit the field.

 

More importantly:

33 minutes ago, JMart said:

The idea is that once a user makes a document type selection, they can not change it unless they start over.

I am not sure what exactly that means and how hiding one of the instances of the field is supposed to help. In general, if you don't want your users to do something you would restrict their privilege set.

 

Posted
2 hours ago, comment said:

IsEmpty ( Self ) and not IsEmpty ( Self ) should work. But hiding will occur only after you exit the field.

 

More importantly:

I am not sure what exactly that means and how hiding one of the instances of the field is supposed to help. In general, if you don't want your users to do something you would restrict their privilege set.

 

Thanks for the clarification that it would only work on exit.

The intent is that once a new document is created and a user makes a selection, the second field is displayed with the value, but the browse function is not enabled, preventing the users from changing the value. 

 

Sorry, but from something this simple, would the privilege complicate things?

Thanks

Rudy

Posted
1 hour ago, JMart said:

The intent is that once a new document is created and a user makes a selection, the second field is displayed with the value, but the browse function is not enabled, preventing the users from changing the value. 

What if they inadvertently make the wrong selection?

 

Posted

There is an option to cancel the entry and clear all the required fields. The issue I am facing is that I have users who switch document types after entering certain key information, and once they do, the entire record is disrupted. For this reason, I am compelled to prevent the document type from being selected. 

Thanks

Posted

I would probably make the field "view only" in their privilege set and set it by script. The script (running with full privileges) would check some condition before allowing the change: this could be the time that has passed since record creation or the record being a new record that hasn't been committed yet (provided you prevent accidental commits during data entry).

BTW Filemaker has a very nifty and often overlooked feature: you can give users the privilege to create records but not to edit them. This allows them to edit the newly created records until the end of the current session. But of course this would apply to all fields in the table.

 

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.