Force order of builder blocks
Hi, I have a Builder component with 2 Blocks.
Is it possible to force that initially they can only add block 1 and always after block 1 a block 2 has to go, without being able to add a block 1 again? And when they have added a block 2, they can add a block 1 again.
1 Reply
I'm not sure if this is possible but I can think of a simple solution... You might be able to enforce this with a custom validation rule.
If the blocks are simple, you could probably do this with a Repeater instead, and the
->visible()
method to alternate the fields between each row.