September 4, 20214 yr I am not sure if this is possible and I cannot find information on it. I have several records and I want to flip between form view and list view which I can do. Is it possible to have two buttons (form and list) and place them on top of each other? When I press 'list' it will show list view but the form button. Then when I press the form button it will display the form view and the 'list' button. Thanks.
September 4, 20214 yr I can't think of any practical use for this - but if you want, you could keep this very simple by using only one button defined to do a single step: View As [ Cycle ] (I am assuming that Table view is disabled in Layout Setup.) However, such button could only have a static label - e.g. 'Toggle View". For a dynamic label, you would need to use a button bar, where the labels can be calculated. So you could have a button bar with a single segment and calculate the label as something like = "View as " & Choose ( Get ( LayoutViewState ) ; "List" ; "Form" ) Now, if you wanted the button to show an icon in addition to or instead of the label, you would need to use a button bar with 2 segments, and hide each segment conditionally using the same Get() function*. Or just show both side-by-side to simulate Filemaker's native display in the Status Toolbar. --- (*) This also answers your original question "as asked": yes, you can have two separate buttons and hide each conditionally. Edited September 4, 20214 yr by comment
September 5, 20214 yr Author Thanks again. I will take your hint and now have 2 layouts (list and form). I am not sure what I was thinking (or perhaps over thinking) 🤪
Create an account or sign in to comment