You need to sign in to do that
Don't have an account?
naresh4olive
Dependent fields
HI Every one,
I have a picklist field in my form.it has options 3,4,5,6,7,8 to select(Numbers).If your selects 3 from the picklist then I need to display 3 text boxes bellow this field.If user selects 4 then I need to display 4 text boxes.
As I am new to this apex and visualforce, Please help me regarding this.
Thanks
Naresh
Hi,
you can use "reRender" attribute of the <apex:selectList> control to render the some region of your page.
Use java Script to handle this,use loop to create text boxes based on the selected value.
The region,in which u creating textboxes, drop within loop.
Thanks.
HI,
I understood the solution above explained. But the need is:
I have a big custom object form with 25 fields. In that one field is pick list field. While user submitting this form, if user selects 3 from the picklist then I should display 3 text boxes or If user selects 4 from the picklist then I should display 4 text boxes bellow the picklist.
I can do this in a separate visual source page. But what is the approach to do this in a big custom object which has 25 fields.
Thanks in advance,
Naresh