The objective is to limit the thankYouPanel to a maximum of 1.
This partially works as expected; within our contenMain matrix in the CP we can add a single thankYouPanel block. After this, the button is greyed out and 'disabled'. However, the user can still click and add another block. See the attached video for reference. The user can then subsequently save the page with no warnings.
My question is, is this intentional? Is the max limit purely to demonstrate visually only one block is allowed?
We've used matrixmate before, and this seems to work if there is only a single allowed type of block allowed and the button to add any further blocks completely disappears. ie in the video above, the only solution that seems viable is to remove the other accepted 'Embed' block.
Setup:
We are trying to set a maximum limit of a certain block in a matrix field. The matrix mate config file looks like this:
The objective is to limit the
thankYouPanel
to a maximum of 1. This partially works as expected; within our contenMain matrix in the CP we can add a singlethankYouPanel
block. After this, the button is greyed out and 'disabled'. However, the user can still click and add another block. See the attached video for reference. The user can then subsequently save the page with no warnings.https://user-images.githubusercontent.com/55092073/201081076-d13c8433-f18c-45c9-84a3-77fc993d95f1.mp4
My question is, is this intentional? Is the max limit purely to demonstrate visually only one block is allowed?
We've used matrixmate before, and this seems to work if there is only a single allowed type of block allowed and the button to add any further blocks completely disappears. ie in the video above, the only solution that seems viable is to remove the other accepted 'Embed' block.