Hi Friends,
thank you for the new release of Chronoforms v6. It looks great for the first view.
Question: Is it possible to set field as optional field, so the validation rule will fire only if the field is not empty?
Regards,
Mike
thank you for the new release of Chronoforms v6. It looks great for the first view.
Question: Is it possible to set field as optional field, so the validation rule will fire only if the field is not empty?
Regards,
Mike
Hi Mike,
Yes, please try this in the "Validations" field:
This will validate for an email address if a value is provided.
Best regards,
Max
Yes, please try this in the "Validations" field:
email:a valid email address is required.
This will validate for an email address if a value is provided.
Best regards,
Max
Hi Max,
it is not correct. If a validation rule is set then this rule is always fired on submitting the form.
What I mean is to submit the form (eg. for saving data) with empty not requiered fields. But if one of thease fields
were not empty the rule should be fired. Semantic UI has an option "optional = true" for that.
The same issue is also at CCv6.
In CFv5 there is an option "Required" in parallel to other rules
so the rule will not be fired if the value is empty and the "required" option is not set.
Regards,
Mike
it is not correct. If a validation rule is set then this rule is always fired on submitting the form.
What I mean is to submit the form (eg. for saving data) with empty not requiered fields. But if one of thease fields
were not empty the rule should be fired. Semantic UI has an option "optional = true" for that.
The same issue is also at CCv6.
In CFv5 there is an option "Required" in parallel to other rules
so the rule will not be fired if the value is empty and the "required" option is not set.
Regards,
Mike
Hi Mike,
Understood, I was under the impression that it's doable by simply using other validation rules and omitting the "required" rule, but that was not the case.
i have added this feature now and it should be available in the next update, you will need to add the "rule" optional to the validations box:
Best regards,
Max
Understood, I was under the impression that it's doable by simply using other validation rules and omitting the "required" rule, but that was not the case.
i have added this feature now and it should be available in the next update, you will need to add the "rule" optional to the validations box:
email:Please enter your email address
optional
Best regards,
Max
Thank you Max, that's great.
Do not forget making the same for CCv6.
Regards,
Mike
Do not forget making the same for CCv6.
Regards,
Mike
Hi Mike,
Thank you, I did, if you want I can send you a patch file, just send me a message using the contact us page.
Best regards,
Max
Thank you, I did, if you want I can send you a patch file, just send me a message using the contact us page.
Best regards,
Max
This topic is locked and no more replies can be posted.