Newbies fmpnaples Posted September 22, 2015 Newbies Posted September 22, 2015 I want to create a check box that has two main items, from which a user can select one or more from one of the main items, but cannot crossover and check from both main categories. I would prefer to keep a single field. For example main category: "Apples" possible check boxes' red, tart, small, fresh OR "Oranges" navel, blood, tart, large. They would be allowed to check one or more but cannot mix apples and oranges.
comment Posted September 22, 2015 Posted September 22, 2015 (edited) They would be allowed to check one or more but cannot mix apples and oranges. What exactly do you mean by "allowed"? Do you mean it would trigger validation, or do you want the selection to be impossible? Validation would be easy. Cancelling contradicting choices might be possible using a script triggered on modify. But it will be a lot of work and the display will be far from ideal. Why not simply use two fields - or perhaps two instances of the same field, each using a different value list? Edited September 22, 2015 by comment
Lee Smith Posted September 22, 2015 Posted September 22, 2015 (edited) Hi fmpnaples, and welcome to the forum. Please update your profile to reflect what version of FileMaker you’re using, operating system, and platform. You can do this by clicking your name at the top of the screen and choosing profile. Edited September 22, 2015 by Lee Smith
Newbies fmpnaples Posted September 22, 2015 Author Newbies Posted September 22, 2015 Profile updated. Relating to What exactly do you mean by "allowed"? for example. I have check box options; A, B,C, D, E and someone can choose one or more from that group. I also have U, V, W, X , Y and someone can choose one or more from that group. but if they choose on or more from either group, they cannot choose any from the other group.
comment Posted September 22, 2015 Posted September 22, 2015 if they choose on or more from either group, they cannot choose any from the other group. Yes, I understood that the first time. But what do you want to actually happen when they try to choose from the other group? Are you familiar with how field validation works?
Fitch Posted September 22, 2015 Posted September 22, 2015 Wouldn't it be nicer if, when you select Oranges, you don't even display the options for Apples, and v. versa? Maybe I've misunderstood the question.
Newbies fmpnaples Posted September 22, 2015 Author Newbies Posted September 22, 2015 Sorry if I am not being clear. Let me try again. I have two groups of main categories: GROUP A INCLUDES: Science, Technology, Engineering, Mathematics, and Social SciencesGROUP B INCLUDES: Fine Arts, Humanities, Business, Law, and Engagement The user can choose any or all of the disciplines in one of the groups. But they cannot choose from both groups. I want check boxes that list each of the above disciplines (from both Group A & B), but once they have chosen the first discipline, they can only choose other disciplines from that same group..
Fitch Posted September 22, 2015 Posted September 22, 2015 Are these two columns of checkboxes, or two rows, or all mixed together or what? I ask because if they are in separate rows or columns, you could use two instances of the field, as suggested above, and use the Hide Object feature to make one group invisible once the first selection is made. If they're all mixed together then I might try a filtered portal to get this effect. See the attached file for example. exclusive checkboxes.zip
Recommended Posts
This topic is 3623 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 accountSign in
Already have an account? Sign in here.
Sign In Now