Webmastersite.net
Register Log In

Best way to add multiple choice fields

Comments on Best way to add multiple choice fields

Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007

Total Topics: 32
Total Comments: 130
Jez
Posted Oct 16, 2007 - 6:24 AM:

What is the best way to add a multiple choice option to the add link page?

I tried adding checkboxes, radion buttons and multi select combo box but none of the had the desired effect.

Here's how i would like it to work if I want people to list the facilities of an hotel

Facilities: Bar. = Yes; Restaurant = No; Laundry = Yes and so on

I can see how I can do it as seperate fields with just Yes - No but not as one multiple choice one. Some cases may not be a simple Yes or No but have other options also.

Hope you can help.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 19, 2007 - 3:21 AM:

Found that it was generating some ugly HTML for multiselectors and isn't showing the selections on edit. Will get this resolved tomorrow.
Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007

Total Topics: 32
Total Comments: 130
Jez
Posted Oct 19, 2007 - 3:28 AM:

Great!
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 19, 2007 - 7:50 PM:

Checkboxes seem to work fine already, what problem are you having with them? Fixed comboboxes for 4.1.9.
Jez
Forum Regular

Usergroup: Customer
Joined: Jan 19, 2007

Total Topics: 32
Total Comments: 130
Jez
Posted Oct 20, 2007 - 3:38 AM:

I am probably just not using them right. I want several choices to show (on the details page - I am not having any problem with what they display on the add link page). When I set up 4 or 5 checkbox options only 1 answer showed on the details page
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 23, 2007 - 12:29 PM:

You'd display the answers like this:
<IF {LINKCHECKED[multicheck <,> op1]}>checked op1</IF>
<IF {LINKCHECKED[multicheck <,> op2]}>checked op2</IF>
<IF {LINKCHECKED[multicheck <,> op3]}>checked op3</IF>
<IF {LINKCHECKED[multicheck <,> op4]}>checked op4</IF>


(as mentioned at bottom of scripts.webmastersite.net/w...adding-a-new-field-98.html )
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.