I’m creating a doc at the moment that references a “master” table and what I wan’t to do is to be able to hide or show fields in a card view. I don’t think this will be possible without creating a complete “new” view that has this logic in it but thought I would ask the question.
Welcome to the Coda community @TCndaHouse!
Are you trying to hide/show fields based on different field values of the row? So different rows will have different fields shown.
Or trying to create an UI where the user can hide/show different fields based on what that user wants to see?
Or something else?
Hi Ryan
I’m setting up a training schedule that is a combination of time based or set/rep based so in the card view if the drill is duration based then I won’t see the set or rep field and vice versa.
Hopefully that make sense
Kindest regards,
Glenn
+44 739 900 6915
Yesterday provides us with lessons learned
Today brings us new challenges and chapters in our lives
Tomorrow is a mystery with the hope of exciting things to come
@TCndaHouse yep it does. So in a single view you want 1 card to show specific fields and another card to show different fields based on the rows values. So something like this:
There isn’t native functionality in Coda for this yet, but you can hack it like i’ve done in the above screenshot. It may get you close to what you want:
- Create a “Duration Layout” column with type Compose. In the compose formula create the layout you’d like for the specific Duration based fields
- Create a “Rep layout” (or what ever it’s called) and do the same
- Create a “Card Layout” column with a simple formula that shows the Duration layout when the drill type is duration otherwise the rep layout
- On the card table view then hide all the fields that are dependent on the drill type and add the “Card Layout” column
Implementation Notes:
- The field types can be compose, text or canvas. All should work.
- You can also do it with 1 column instead of 3. Using 3 may help you to control the layouts easier.
- Assuming you want to open the cards in different layouts you can also do that with a button that opens rows in a different layouts (Open Row option on Click).
Does that get you close to what you were looking for?
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.