Skip to main content
Participant
March 28, 2008
Question

Cold fusion dropdown related issue

  • March 28, 2008
  • 3 replies
  • 494 views
Hi all ,


I am new to coldfusion.
I have created a page, which has two divisions.In each divison there is a radio button.
Click on radio button of first division disables the fields of second divison and click on second division disables all the fields of first division.

Second division has two dropdowns
1.State 2.City
I am gettting the values of state from database.Change of state option submits the forms to populate the options of city dropdown.

My question is
If radio button of second division is selected First division fields are disabled.
But when user changes the state option from state dropdown of second division submitting the form.After submitting the form the first division fields are not disabled. user has to select second radio button again to disable first division.

How to retain fields disable even after submitting the form.


Anybody please resolve this issue for me.

Thanks in Advance.

    This topic has been closed for replies.

    3 replies

    Known Participant
    March 31, 2008
    hi,
    try this..

    <cfparam name="chkd" default=0>

    inside ur form...
    <cfif chkd eq 0>
    radiobutton unchecked
    <cfelse>
    radiobutton checked
    </cfif>

    in the submit code write the following:-
    <cfif isdefined("form.radiobuttonname")>
    <cfset chkd=1>
    </cfif>
    Participant
    March 28, 2008
    HI ajithmanmu.

    I am able to select the radio button but the first div fields are not disabled.We need to click the radio button to disable fields of first div.
    how to acheive this in coldfusion.
    Known Participant
    March 28, 2008
    Hi,
    the radiobuttons will get defined in page submit only if they are selected. You can select or unselect the radiobutton based on whether they were defined or not....