[phorm] [Phorm:] Re: ONEOF criteria

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 6 Dec 2004 15:52:09 -0000

The following new message has been posted on Phorm Support Forum at 
<http://www.phorm.com/support/>. 

*************************************************************************** 

  MESSAGE:  (#4526) Re: ONEOF criteria 
            <http://www.phorm.com/support/?rev=4526> 
  AUTHOR:   Holotech 
  DATE:     December 6, 2004 at 10:52 a.m. EST 

  Reply To: (#4513) ONEOF criteria 
  Author:   MecchaEric 
  Date:     December 1, 2004 at 11:47 p.m. EST 

> What about when the choices have spaces in them 
> themselves? For example, 

> Red Button 
> Blue Lamp 
> Orange Sweater 

> Is there a way around this? Separating the choices 
> with quotes, or commas? Like... 

Unfortunately, not in the existing version. I admittedly was a bit lazy when I 
first developed that criterion. I'll be improving it in a future release. As a 
workaround, put the following in your config file: 

$Choices = array('Red Button', 'Blue Lamp', 'Orange Sweater'); 

$ValidChoice = in_array($FormField, $Choices); 

Then use the REQ criterion on ValidChoice. 

*************************************************************************** 

This is an automatically-generated notice.  If you'd like to be removed from 
the mailing list, please visit Phorm Support Forum at 
<http://www.phorm.com/support/>, or send your request to webbbs@xxxxxxxxxx  If 
you wish to respond to this message, please post your response directly to the 
board.  Thank you! 
-------------------------------------------------
You are receiving this message because you are subscribed to the Phorm mailing 
list. To send messages to the mailing list, simply send email to 
phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe 
from the list by sending email to phorm-request@xxxxxxxxxxxxx with 
'unsubscribe' in the SUBJECT field.

Other related posts: