Dynamic Input Fields [message #247866] |
Wed, 27 June 2007 07:07 |
lehenbkp
Messages: 3 Registered: June 2007
|
Junior Member |
|
|
I have a package that generates a web page on which the user is asked to select options from various questions. The page is then submitted and answers are posted to the database. For one of the questions, if the user selects "Yes" (default = No) from a drop-down box, I'd like to immediately display additional fields for input. I don't want the additional fields displayed by default since they are not required if the users chooses "No".
Any help would be greatly appreciated. Thanks.
|
|
|
|
Re: Dynamic Input Fields [message #247898 is a reply to message #247866] |
Wed, 27 June 2007 08:11 |
lehenbkp
Messages: 3 Registered: June 2007
|
Junior Member |
|
|
Sorry, perhaps I didn't explain properly. The web page is created by a PL/SQL package compiled on our Oracle database (9.2.0.6). Most of the web elements (i.e. text, drop-down boxes, radio buttons) are created using PL/SQL Toolkit commands (htp, htf).
Since I am writing PL/SQL packages to create the web pages I thought the PL/SQL forum was the proper place to post my question.
|
|
|
|
Re: Dynamic Input Fields [message #248154 is a reply to message #248098] |
Thu, 28 June 2007 03:18 |
rleishman
Messages: 3728 Registered: October 2005 Location: Melbourne, Australia
|
Senior Member |
|
|
This article talks about that kind of thing for Oracle Application Express. Since it is all handled at the client, you might the solution works even when you are using plain PL/SQL web pages.
Ross Leishman
|
|
|
|
|
Re: Dynamic Input Fields [message #248844 is a reply to message #247866] |
Mon, 02 July 2007 07:05 |
oracle_dev
Messages: 24 Registered: April 2007
|
Junior Member |
|
|
You can do this by keeping the optional fields in a different page and call the page by validation using AJAX. Since AJAX does not require page submit, controls will be displayed when user selects appropriate option in the dropdown.
|
|
|
|