Results 1 to 3 of 3

Thread: condition or

  1. #1
    Join Date
    Aug 2010
    Posts
    2

    Default condition or

    I have four checkboxes in my form and I need at least one of them to be checked (it may by 2, 3 or all of them as well). How to do this? I've tried this: @TEST@option1|option2|option3|option4@MESSAGE@
    and this:@IF@option1|option2@@option3|option4@MESSAGE@
    and none of them works.

  2. #2
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: condition or

    unfortunately, u can only do one OR condition, not a string of them.

    but this should work:
    HTML Code:
    :@@IF@option1|option2@@option3|option4@MESSAGE@
    r u sure ti doesn't? were u just missing the initial @ after the : ?

    another way i've done this si by creating a contactentation of the list of options and testing that.

    this works coz a checkbox field only gets a value when the check box is checked:
    HTML Code:
    <input type="checkbox" name="option1" value=1" />
    <input type="checkbox" name="option2" value=1" />
    <input type="checkbox" name="option3" value=1" />
    <input type="checkbox" name="option4" value=1" />
    then:
    HTML Code:
    <input type="hidden" name="derive_fields"
      value="OptionTest=option1.option2.option3.option4" />
    <input type="hidden" name="conditions1" 
      value=":@@TEST@OptionTest@MESSAGE@" />

  3. #3
    Join Date
    Aug 2010
    Posts
    2

    Default Re: condition or

    Thx
    this works fine
    Code:
    <input type="hidden" name="derive_fields"
      value="OptionTest=option1.option2.option3.option4" />
    <input type="hidden" name="conditions1" 
      value=":@@TEST@OptionTest@MESSAGE@" />

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Condition (If.. then)
    By mikan in forum HOWTO Guides and Tips
    Replies: 3
    Last Post: 02-Jul-2008, 12:59 AM
  2. email condition not working, why??
    By tlyczko in forum Community Support
    Replies: 1
    Last Post: 11-Apr-2007, 05:55 PM
  3. Condition
    By Andersson in forum Community Support
    Replies: 1
    Last Post: 04-Aug-2006, 08:50 AM
  4. Email Condition doesnt work
    By milez in forum FormMail Subscription Support
    Replies: 1
    Last Post: 14-Nov-2005, 05:06 PM
  5. Condition - restrict maximum checkboxes
    By tvulucy in forum FormMail Subscription Support
    Replies: 3
    Last Post: 22-Aug-2005, 08:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •