Jump to content

Need help in designing the Intelligent form. Thanks!


bchandel

Recommended Posts

I have a typical form to collect information online and the fields are;

 

Name-Text

Category - Dropdown box showing 3 options say Young, Adult and Old

Remarks-Text area

 

I want to find if there is any way to update the category dropdown box dynamically without making changes in the form in usual way adding additional category. I was wondering if there can be a separate table for catgory where additional categories can be added and which become available for a user to be picked up as a choice in the dropdown box.

 

Thanks!

Hi

 

You can manipulate the contents of drop down list boxes.

 

However to do this in php alone would require submitting the form and sending it again with the updated drop down list.

 

What you can do it use Javascript to change the drop down list, or to make it more responsive use AJAX (ie, basically using javascript to call a php script to get more data in the background).

 

All the best

 

Keith

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.