[FreeForm] Greater flexibility with ’required’ fields (If, then) and (At least one, possibly both) and (At least one, and not both)
Posted: 30 July 2007 09:51 PM   [ Ignore ]
Jr. Member
RankRank
Total Posts:  37
Joined  2007-04-26

If.. then…
Consider this scenario: A form that lets you pay by credit card or by money order. If credit card is selected, then all associated fields (card type, number, etc) would be REQUIRED, but if money order was chose, then the credit card fields would NOT be required.

At least one and possibly both, or at least one and only one…
Consider this scenario: A contact form that asks for ‘State’ - it gives you a drop down list of all the states in America, AND an option to enter text for those outside America.
In this case, at least one of those two fields would be required, but not both.

Profile
 
 
Posted: 31 July 2007 02:47 AM   [ Ignore ]   [ # 1 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09
Adman - 30 July 2007 09:51 PM

Consider this scenario: A form that lets you pay by credit card or by money order. If credit card is selected, then all associated fields (card type, number, etc) would be REQUIRED, but if money order was chose, then the credit card fields would NOT be required.

Which of our plugins/modules is this FR for? Freeform?

At least one and possibly both, or at least one and only one…

So, you are asking for Boolean logic ("OR" and “XOR") in Freeform, is that it?

 Signature 

Ingmar Greil

Profile
 
 
Posted: 31 July 2007 05:07 PM   [ Ignore ]   [ # 2 ]
Jr. Member
RankRank
Total Posts:  37
Joined  2007-04-26

Sorry, yes, in FreeForm.

It would be good to cater for these scenarios (sorry, I don’t know the equivalent boolean logical operators):

- In a group of radio buttons, if one is selected, then certain other fields become ‘required’ (otherwise they are not required). See the first scenario above for an example.

- At least one of two or more options needs to be selected (but the options are not radio buttons - they could be a drop down list, text input, etc).

- At least one and only one of two or more options needs to be selected (but the options are not radio buttons - they could be a drop down list, text input, etc).

I am working on forms at the moment for which this flexibility would be great.

Are you going to be releasing a pay-for form module with new functionality?

Profile
 
 
Posted: 01 August 2007 02:36 PM   [ Ignore ]   [ # 3 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

Thank your for your feature request, much clearer now. While I can’t speak for Solspace officially on that issue, I don’t expect an enhanced “for-pay” version of Freeform any time soon.

 Signature 

Ingmar Greil

Profile
 
 
Posted: 15 January 2008 09:20 AM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  2
Joined  2007-10-05

I’ve got a form processing and collecting data with the FreeForm module. However, I too need to be able to make a set of input fields required if a person checks “yes” or selects “yes” from a set of radio buttons.

Can anyone who knows javascript help me with this?  You can check out the page here.

Profile
 
 
Posted: 02 June 2008 02:04 PM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  1
Joined  2008-06-02

This feature would be of immense help. I’d like to specify that one of a number of related fields is required but not all.  For example the user is required to submit an email address OR telephone number OR mailing address.

Cheers
Lucy

Profile