I have a quick question.
I have a required radio button in the form with the <cfoutput> group up with
the query:
<cfform
<cfoutput Query="Qry1" group="EmpName">
<cfinput type="radio" name="Prod1" value="#ID#" required="true" message="You
need to select option"/>#EmpName#
</cfoutput>
<cfinput type="submit" name="btn_Previous"
value="Previous">
<cfinput type="submit" name="btn_Submit"
value="Continue"></td></tr>
</cfform>
<cfif Isdefined("form.btn_Submit")>
<cflocation url ="addinfo.cfm" addtoken="no">
</cfif>
<cfif isdefined("form.btn_Previous")>
<cflocation url="index.cfm">
</cfif>
I have the Previous button on that page and the continue button.
If I click on the previous button it shows the alert message to select option.
Is there anyways we can do that if we hit the previous button , it should not
show alert
even if we dont select the option and if we hit the continue button it should
show an alert
if option not selected.
Thanks,
Priya
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322505
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4