How Can I Get the current value of a binded field for use in a conditional statement?
hey guys, have cfgrid that's bound form fields:
<tr>
<td align="right"><span class="srch_title">first name 1</span>:</td>
<td align="left"><cfinput name="data_fname1" type="text" class="inputs_nomargin" bind="{searchresultsgrid.fname1}"></td>
<td align="right"><span class="srch_title">last/bus name 1</span>:</td>
<td align="left"><cfinput name="data_lnamebus1" type="text" class="inputs_nomargin" bind="{searchresultsgrid.lname_busname1}"></td>
<td align="right"><span class="srch_title">dob 1</span>:</td>
<td align="left"><cfinput name="data_dob1" type="text" class="inputs_med_nomargin" bind="{searchresultsgrid.dob1}"></td>
<td align="right"><span class="srch_title">dl number 1</span>:</td>
<td><cfinput name="data_dlnum1" type="text" class="inputs_nomargin" bind="{searchresultsgrid.dlnum1}"></td>
</tr>
when, clicking on cfgrid rows, data in form fields changes, expected.
however, i'd make other stuff happen conditionally based on current values of 1 or more of form fields.
how can access, example, current contents of {searchresultsgrid.fname1} in cfif statement?
thanks in advance can give me
t
hello tim, barely fit in situation since code resides on client’s interaction side of things. i’d recommend using javascript matter, e.g. var data_fname1 = document.getelementbyid(‘data_fname1’).value;. if still opt using cfml, you’d go proxying javascript code cfc.
More discussions in ColdFusion
adobe
Comments
Post a Comment