Skip to main content
Solved

Layout for variant

  • February 17, 2020
  • 2 replies
  • 111 views

eurban
Captain
Forum|alt.badge.img+4

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

Best answer by Mark Jongeling

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

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+23
  • Administrator
  • 3936 replies
  • Answer
  • February 18, 2020

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


Forum|alt.badge.img+17
  • Moderator
  • 761 replies
  • February 18, 2020

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings