Simple demo to show how to use validate the field against the max limit you set with ConfiForms Field Definition Rule
Storage format
<ac:structured-macro ac:macro-id="cc63f296-c16b-49ac-ae4c-4f4df68a6c7a" ac:name="confiform-entry-register" ac:schema-version="1"> <ac:parameter ac:name="embedded">true</ac:parameter> <ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter> <ac:rich-text-body> <p> <br/> </p> </ac:rich-text-body> </ac:structured-macro> <ac:structured-macro ac:macro-id="9ea14274-6636-4366-b638-5157f75a1522" ac:name="confiform" ac:schema-version="1"> <ac:parameter ac:name="formName">myform1</ac:parameter> <ac:parameter ac:name="registrationFormTitle">Start typing something inside the text area below</ac:parameter> <ac:rich-text-body> <p> <ac:structured-macro ac:macro-id="b4e45f42-4bbd-4148-8327-fde1d634c525" ac:name="confiform-field-definition" ac:schema-version="1"> <ac:parameter ac:name="fieldName">ta</ac:parameter> <ac:parameter ac:name="fieldLabel">ta</ac:parameter> <ac:parameter ac:name="fieldDescription">Only 10 characters is allowed</ac:parameter> <ac:parameter ac:name="type">textarea</ac:parameter> </ac:structured-macro> </p> <p> <ac:structured-macro ac:macro-id="48fbb76e-0f5f-473b-9984-9337ed077b23" ac:name="confiform-field-definition-rules" ac:schema-version="1"> <ac:parameter ac:name="condition">ta.asCount:>10</ac:parameter> <ac:parameter ac:name="fieldName">Only 10 characters max is allowed</ac:parameter> <ac:parameter ac:name="action">Validation rule</ac:parameter> </ac:structured-macro> </p> </ac:rich-text-body> </ac:structured-macro> |