Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfif and submit 1

Status
Not open for further replies.

JohnShell

Technical User
Aug 29, 2003
35
US
I do not know how to successfully do this. Have cfselect (id=Decision) with values 0 = -Select-, 1 = Approved, 2 = Denied.
Would like to show disabled submit button on form with value Request Approved. Also have another submit button with value of Request Denied which is not visible. If user does not make selection of Approved or Denied then submit button Request Approved remains disabled. If user selects Approved then submit button Request Approved becomes enabled. If user selects Denied then submit button Request Denied becomes visible and Request Approved button becomes not visible. After either enabled Request Approved button or visible Request Denied button successfully clicked, page is reset and Request Approved submit button appears and is disabled. Is this possible to accomplish? How?

Thanks - John
 
Why not just have a single button and use javascript to change the text based on what option is selected? ie document.getElementById('yourButton').value = 'text here'

----------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top