Jump to content

Pick list with an "other" option?


designerspressinc

Recommended Posts

It seems like a simple thing so I assume I'm just spacing...

 

I am creating a document that will have 5 possible bullet points, each of which has 4 predefined options and an "other" option. If they choose other, they could then type in new text.

 

So what I'd like to do is create a picklist with the 4 items and then other where if they choose other, text entered in a field below called "If Other" would be substituted. Thoughts on how best to do that?

 

Thanks in advance for any help.

Link to comment
Share on other sites

As I asked and suggested on the other thread:

Are you using the Define HTML Form (Web DataCollect) feature? It doesn't have the capacity to show a "combo" box with both a drop-down list and a free-form edit box. I would make a pick list item called "Other" and have an edit box whose value gets used when "Other" is selected in the pick list.

In this case, where you have multiple "other" choices, you could have a series of rules like this:

if (Field("Bullet1") == "Other")
   return Field("Bullet1Other");
//else
return Field("Bullet1");

Or:

return (Field("Bullet1") != "Other") ? Field("Bullet1") : Field("Bullet1Other");

Then you could have five copies of that rule. But that's a bit unwieldy. It's probably better to do it all in one shot in OnRecordStart, like so:

for (var i = 1; i <= 5; i++)
   FusionPro.Composition.AddVariable("Bullet" + i, (Field("Bullet" + i) != "Other") ? Field("Bullet" + i) : Field("Bullet" + i + "Other"));

Edited by Dan Korn
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...