Jump to content
  • 0

Multiple choice in a form?


mpaige
 Share

Question

4 answers to this question

Recommended Posts

  • 0

You can use the field type of \"listbox\" this will give you a box with your options. The options can be custom values or come from a table. However by default Caspio does not allow the selecting of multiple values on this field.

Where you configure this field to make it a listbox you will also need to add a bit of code:

This code below will go into a footer section.

document.getElementById('InsertRecordREPLACETHISWITHTHEFIELDNAMEFROMYOURTABLE').multiple = \"multiple\";

Link to comment
Share on other sites

  • 0

I have inserted the code and changed the required text to the name of the field in the table where the list is being populated from. But when I try to Ctrl+Select more than one option it doesnt work.

I copied the javascript exactly and removed teh uppercase letter replacing it with:

ActivitysList

which is the both the name of the table AND the field name where the list of activities are (there about 25 different activities)

I knwo I'm overlooking something simple....right?

Link to comment
Share on other sites

  • 0

The size property will most likely require modification as well....in your drop down can you see more than one option or do you just see one and get the down arrow to select others?

Please provide a url to the page your developing...this makes it much easier to supply you with the correct code needed :)

Link to comment
Share on other sites

  • 0

Hi,

Just want to update this post, Caspio has integrated Listbox option as one of the standard feature of it. You can now use Listbox to select more than one option.  A listbox displays options in a list where the user is allowed to select one or more items from the list. You can add custom values, use a lookup table or view, or both as the source for your values.

You can refer to this links for reference: 

https://howto.caspio.com/datapages/datapage-components/dropdowns-and-listboxes/multi-select-listboxes-in-search-forms/

https://howto.caspio.com/tables-and-views/data-types/list/

 

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
Answer this question...

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

Loading...
 Share

×
×
  • Create New...