Even though I am using the suggested technique with the display page, I am having an issue. Hopefully you can help me.
My Members form has a sub-form called Groups which displays a DataView to show which study groups the current member is involved with.
When I click one of the groups in the sub-form (configured as a button), it opens up a new form called GroupMembers. This is for editing purposes, since I can’t edit in a DataView.
My StudyGroups form also uses a DataView showing which members are in that group. It also, when clicking a member, opens up the GroupMembers form for similar editing.
The picture below is of this editing form in design mode. Note that it has a Group field and a Member field at the top.
The
Group field has a showIf formula
=(five.variable.ActiveForm == “Members”. The
Member field has a similar showIf, but instead of “Members”, it contains “StudyGroups”.
My logic is: When showing the Members form and navigating to the edit form for a Study Group on the second page, I don’t want to see the “Members” field. Conversely, when showing the StudyGroups form, I don’t want to see the “StudyGroups” field on the edit form.
I’m not really sure if this logic is valid, perhaps I should always show both fields. However, right now that is my logic.
In any case, when I am viewing the StudyGroups main form, then click on a member in the next page, here is what comes up:
As you can see, the Member field is indented far to the right, and the Group field is correctly not showing. It would be to the left of the Members field.
Please believe me that if I run this from the Members main form, the Group field on the edit form shows up on the left of the first line.
So the question is, why is the member field indented past the “invisible” groups field? The Display tab in form design shows 0 PreWidth and 0 PostWidth for both fields.
I either need to solve this, or simply allow both fields to always show. I’m fine with that solution if you can assure me that if I happen to move the member to a different study group, or the study group to a different member, everything will work if I save the record. I am not sure it will work. What if I am in group 1 and group 2. Then I edit my Member record and bring up the edit form by clicking “Group 1” button. the edit form pops up and I change “Group 1” to “Group 2” in that edit form. When I save the record, wouldn’t that cause a conflict, since I’m already in Group 2?
Thanks for reading this somewhat verbose question.