View Single Post
  #3  
Old October 15th, 2010, 01:41 PM
bobk_IMbranded bobk_IMbranded is offline
Junior Community Member
 
Join Date: Sep 2010
Location: Midwest
Posts: 15
Default Re: Need a rule to let user choose btw picklist & "enter your own text"

So if I understand you correctly...,

My data source has 2 fields, one for my dropdown (with values for each) and one for the custom field (with an empty value.)

My template has one text box.

I create the HTML form with 2 fields. One multi-line text box labeled "Custom" and one Picklist with my 5 pre-set choices with values (does one of the choices have to be "Fill in custom message"?)

And I create the rule below...

if (Field("Dropdown").indexOf(Field("Custom")) > -1)
{
return "<span>" + Field("Custom") + "</span>";
}
else
{
return "<span>" + Field("Dropdown") + "</span>";
}
return "";
__________________
bobk
Using FusionPro Designer 6.0P1e with Indesign CS3, Acrobat 9 Pro
Reply With Quote