EasyCFM.COM ColdFusion Forums / Coding Help! / Cfform help - beginner

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: Cfform help - beginner

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts first

Webmaster
08-09-2013 @ 1:29 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Administrator
Posts: 4542
Joined: Jan 2002

1. You cannot do that with CF, because CF is a server
side language, not a client side language. The check
has to occur in JavaScript.

You can find examples using Google:
https://www.google.com/search?
q=password+confirm+password+validation+javascript&oq=pa
ssword+confirm+password&aqs=chrome.2.69i57j0l3j69i62l2.
4324j0&sourceid=chrome&ie=UTF-8

2. It's definitely possible, however again this would
require Javascript (more complex as it would require an
Ajax call to the server to get a list of users that
match the selected Gender).

3. Once again this would require JavaScript. You would
use CSS to show/hide the field based on the selection.
There are many ways to achieve it; however this is the
easiest.

Pablo Varando
Senior Application Architect
EasyCFM.COM, LLC.

904.483.1457 \\ mobile
webmaster@easycfm.com \\email

\m/ (>.<) \m/
--- rock on ---

dragnegabriel
07-05-2013 @ 9:33 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
New Member
Posts: 14
Joined: Jun 2010

Hi! I am working on a first CF app, and encountered three things that I don't know how to do it regarding forms

1) I need to test that the password and confirm password fields are the same before

submitting the form to processing cfm. How do I do that with cf? (I don't know other

languages)

2) I have a first field in a form with a dropdown where a choose employee gender. I want in the same form below within a second field to have a dropdown list populated with all employees having the gender selected above. Is it possible to do that without submission?

3) I want to arrange payments to employees based on their job. For management, there are beside salary, bonuses. I want to make a general form for this action, but if I choose in a field above a MANAGER position, another field to be inserted below to be filled with bonus amount, however, if i choose NORMAL EMPLOYEE above, this BONUS Field should not appear. Is it possible to change the content of cfform based on information inserted within, without making a sumbmission?

Thank you!  Question


Website Designed and Developed by Pablo Varando.