Solved

Layout for variant

  • 17 February 2020
  • 2 replies
  • 99 views

Userlevel 2
Badge +4

How do i make a filed mandatory in the layout for a specific variant

icon

Best answer by Mark Jongeling 18 February 2020, 08:42

View original

2 replies

Userlevel 7
Badge +23

Hey Eurban,

Sadly there's not a way to make Layouts (nor context and defaults) specific for variants.

What you could do is make two different fields for the field you wish to make mandatory. Then one field is visible when viewing the main subject and when viewing the variant you show the other field and make it mandatory. Then you could make an expression field that shows the subject-field value and if it's empty it will show the variant-field value. This field you can show whenever the user is in navigation mode.

coalesce(table.columnValue, variant.columnValue)

It's a workaround but it does work.

Does this help you out?

Kind regards,
Mark Jongeling

Userlevel 6
Badge +16

Currently this is not possible. If you feel this is needed then please make a wish for the default to include  variant_id. 

Reply