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?
Hi @Rachel Andrews
Not sure why you need that, but here is how you can do that
Demo:
http://recordit.co/694a4AbWSm
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
@Alex Medved _ConfiForms_ thank you so much! That seemed to do the trick
It looks like you're new here. Sign in or register to get started.