bind
I have two text boxes
1. First text box is defaulted to the curent date + 5 business days.
2. When i pick the date from the second text box, I want the date in the fisrt text box = date in second text box + 5 business days.
The code i have below is currently working fine but the fist fidn't added 5 business days because i don't know how to add into it from txt2.
How can I accomplish it?
<!---cfm--->
<cfparam name="currentdate" default="#businessDaysAdd(now(),5))#">
<cfform name="fform">
txt1: <cfinput type="datefield" value="#dateformat(current, "mm/dd/yyyy")#" name="txt1" bind="cfc:app.home.cfc.bu.getfinaldate({txt2@change})">
txt2: <cfinput type="datefield" name="txt2" value="">
</cfform>
<!---cfc--->
</cfcomponent>
<cffunction name="getfinaldate" access="remote">
<cfargument name="txt2">
<cfreturn "#arguments.txt2#">
</cffunction>
</cfcomponent>
Thanks
