Hello,
I would like to prevent users of my ConfiForm from entering in multiple consecutive spaces in my field name (e.g. "hello test"). Is there a condition I can set for this field definition that will detect something like this and trigger an error for the user to fix?
Not sure why you need that, but here is how you can do that
Demo:
Complete configuration:
<ac:structured-macro ac:macro-id="488ffc5c-fd4f-4779-9868-89e6162c066a" ac:name="confiform" ac:schema-version="1">
<ac:parameter ac:name="formName">form</ac:parameter>
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="a8a64c24-2787-40d5-8a50-6f8fdb3de6d6" ac:name="confiform-entry-register" ac:schema-version="1">
<ac:rich-text-body>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<ac:structured-macro ac:macro-id="a289f7d3-55c4-4483-b0bb-db0d84a58977" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">field</ac:parameter>
<ac:parameter ac:name="fieldLabel">field</ac:parameter>
<ac:parameter ac:name="type">text</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="7176d79a-dcee-4279-9874-75034e8567a1" ac:name="confiform-field-definition-rules" ac:schema-version="1">
<ac:parameter ac:name="condition">field:* *</ac:parameter>
<ac:parameter ac:name="fieldName">consecutive spaces in field name, not good</ac:parameter>
<ac:parameter ac:name="action">Validation rule</ac:parameter>
<ac:parameter ac:name="actionFieldName">field</ac:parameter>
</ac:structured-macro>
</p>
</ac:rich-text-body>
</ac:structured-macro>
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.