[phorm] [Phorm:] Re: ONEOF criteria

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 6 Dec 2004 23:31:18 -0000

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

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

  MESSAGE:  (#4527) Re: ONEOF criteria 
            <http://www.phorm.com/support/?rev=4527> 
  AUTHOR:   Mecchaeric 
  DATE:     December 6, 2004 at 6:31 p.m. EST 

  Reply To: (#4526) Re: ONEOF criteria 
  Author:   Holotech 
  Date:     December 6, 2004 at 10:52 a.m. EST 

> 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. 

I have the following in my config file. I used what you provided, but put in 
my actual choices. 

$Choices = array('Both', 'Cash Advance Program', 'Gift Cards Program'); 
$ValidChoice = in_array($FormField, $Choices); 

I have the following in my Rules file 

RULE: PROGRAM1 
CRIT: REQ 
FFLD: ValidChoice 
LEVL: 1 
MESG: 
<FONT COLOR=CRIMSON><B> 
<BR>You didn't indicate which Program(s) you are applying for. Use the BACK 
button on your browser to correct this, and re-submit the form. [Error 
PROGRAM1] 
</B></FONT> 
### 

The field in question is called Program 

Its not working. I'm sure I'm missing something. What is it? 

Thanx in advance. 

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

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: