• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: How to fill selectbox dynamically using script

How to fill selectbox dynamically using script 16 years 10 months ago #3624

  • Hans
  • Hans's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hi,

I need to fill a selectbox (dropdown) dynamically. The selection data depends on selection of a previous dropdown in the form. Is there an example of how to do this via scripting. e.g. how do i adress the components in a script in order to validate user input from a dropdown?

best regards,
Hans de Mooy<br><br>Post edited by: Hans, at: 2008/07/07 08:31
The administrator has disabled public write access.

Re:How to fill selectbox dynamically using script 16 years 10 months ago #3625

  • dragonjc
  • dragonjc's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 151
First, say if it is a RSForms Pro version, or Lite

Second, explain better, with exemple please. I haven't understand. For this time i have understand that your dropdown should take value on database taking into result from other form. Is it that ?
Component RS SHow Form in build
The administrator has disabled public write access.

Re:How to fill selectbox dynamically using script 16 years 10 months ago #3630

  • Hans
  • Hans's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
1) I am using RsFormsPro (Latest version)

2) I have two dropdown boxes. I want to fill the second dropdownbox after the user made a selection in the first.

e.g. action 1: User selects a course
-> Dropdown 1: Select a course (a, b, c, etc.)

action 2: User selects the preferred day of the week he wants to subscribe to
-> Fill DropDown 2 with the days that the selected course is given e.g. mo, sa
-> User select preferred day from DropDown 2: Select day of week.

Summary:
Ones the user selects a course from DropDown1 i need to dynamically fill the days of the week in Dropdown 2 which can be different per course. This can be hardcoded with \"if then else\".

I hope this clearifies what i am looking for.

best regards,
Hans<br><br>Post edited by: Hans, at: 2008/07/07 21:53
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!