I created an asset builder to create Comment asset. At the moment it is very simple. On both Not Logged In and Logged In I added the following:
%create_error%
%create_form%
All is working fine until I added required attributes. I want to make both Name and Comment required. By default it is only Name that is mandatory as it is the asset name (I can’t however find where I could customise the error message for this).
So on the Required Attributes screen I made Name and Comment mandatory with customised error message. After this, my create asset stops working. It keeps on telling me that the Name and Comment are missing even though I have typed in both of them.
Please help. I might have missed something obvious.
It used to work in Matrix 4, when we upgraded to early version of Matrix 5 the required attribute for comment failed. This was a known bug and I’m not sure if this was ever fixed. The alternative solution is to apply a Metadata as comment and then use the required attribute on that metadata.
I suggest you contact Squiz to get your system patch upgraded if this is an issue holding you back.
As a workaround, you could just use client side validation to ensure the comment field is filled out perhaps? Even use the HTML5 required attribute on the input field for the comment?