Link to home
Start Free TrialLog in
Avatar of sulzener
sulzenerFlag for United States of America

asked on

Simple Javascript to Validate Form Data against Session Data

I am new to javascript.  Can someone help me finish this?  I need some logic that will check a Form Variable a against a Session variable and then make sure that a Followup date was entered!

I do not know how to finish this logic:

function verifySubmit()
{
      if (document.forms.DetailMain.FollowupPerson.value ==
                          THE SESSION USER)

                 FORCE ENTRY OF A  FOLLOWUPDATE
}
Avatar of cheekycj
cheekycj
Flag of United States of America image

like this

<cflock scope="session" type="readonly" timeout="10">

function verifySubmit()
{
    if (document.forms.DetailMain.FollowupPerson.value == <cfoutput>"#trim(SESSION.varname)#"</cfoutput>) {
            do whatever
    }
 
}

</cflock>

CJ
ASKER CERTIFIED SOLUTION
Avatar of substand
substand

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial