HI folks, hope all is well.
I am building a confiform intake, and one of the fields definitions i am using is a date, Field name is RDD.
Is there an opportunity to add a rule, and what would that rule look like, to limit someone from picking a date in the past and restrict them from picking a date that is less than 7 days in the future?
Thanks so much
Absolutely
Just add a ConfiForms Field Definition Rule with validate action
Condition is set to
mydate:<=[yesterday] OR mydate:>[today]+7
Based on shortcut functions we can use for dates in filters: https://wiki.vertuna.com/display/CONFIFORMS/ConfiForms+Filters
Thanks Alex,
This field isn't always required, but when it is the date must follow that logic. Is there anyway to accommodate that? With the logic provided, it appears to work but makes the field mandatory.
Thanks in advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, change the condition to handle that... into something like this may be:
(!mydate:[empty]) AND (mydate:<=[yesterday] OR mydate:>[today]+7)
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.