0

Is there a way to automatically select a card in card layout when the record is loaded?

I want to have multiple mutually exclusive field-groups in a form. I want to switch between them automatically based on a value in the model. Is it possible with the card layout?

Madd0g
  • 3,841
  • 5
  • 37
  • 59

1 Answers1

1

Nothing automatic exists as far as I know. You will have to manually show/hide them based on the information you loaded in the controller.

sha
  • 17,824
  • 5
  • 63
  • 98
  • That means that in order to bind the data, I'd have to take special care of the fields in each card? – Madd0g Apr 16 '12 at 18:17
  • Yes. You can combine fields into fieldsets and hide/show them in groups – sha Apr 16 '12 at 18:19