Reputation: 686
I'm trying to create a WFFM form and I need to set one of two fields to be required. Do I need to create custom fields? Or is this something that I can achieve with the module itself?
Upvotes: 0
Views: 375
Reputation: 4410
You could possibly use the Morph module, which you can download from the Sitecore Marketplace.
From it's description:
Selection-dependent inputs require users to enter additional information related to an initial selection before they can complete a form. In almost all cases, it allows making web forms simpler and more responsive to user actions and personalizing forms depending on visitors’ features.
If memory serves it uses the Sitecore Rules Engine to decide which fields to show/ hide based on inputs. However, I'm not 100% sure whether you can use the Required
checkbox there, but worth a try.
Upvotes: 2
Reputation: 714
No custom field types are needed. The WFFM Form Designer has a Required
checkbox for each field row and most standard fields support this along with a custom validation message.
Upvotes: 0