Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Silencer01 webforumsuser@macromedia.com #1
Form verification and creating a hidden field on submit
Hi All,
I have a form that has a number of radio boxes and input fields for the user to select from. The form is part of a survey. The problem is that the form relies on a form field being populated. If the user decides that they don't want to answer the question (which is a valid option for the survey). It will cause a error when updating the database later in the process.
What i need the form to do is check to see if the user has input any information into the form field if not populate a hidden field.
It would be something like this:
<form name="form" method="post" action="question.cfm" onsubmit="return checkForm(this)">
<input type="radio" name="q1" value="yes">
<input type="radio" name="q1" value="No">
<textarea name="q1" cols="75" rows="5" wrap="virtual"></textarea>
<input type="submit" name="Submit" value="submit">
</form
<!--- if form has been answered go to question.cfm ---->
<!--- if form has not been answered add --->
<input type="hidden" name="q1" value"no response">
<!--- then go to question.cfm ---->
Thanks
Jake A.
Silencer01 webforumsuser@macromedia.com Guest
-
Flash form with hidden field
CF MX7 has nice flash form, but my question is, how could pass embedded hidden field like regular html form do? <cfinput type="hidden" name="">... -
Submit Form with Hidden Fields to URL
I have been looking for examples of submitting form that has hidden fields via Flash MX 2004. I have to submit purchasing information to PAYPAL. ... -
Setting hidden field value eq to a form field value.
Ok guys help a dumb blond out. I need to pass the value of a form field to two different file fields. Here is an example of what I have; <form... -
How to Post Large Form Data (Hidden Field)
I don't believe there's a limit to post. However, an individual field is limited to 102,399. What I've done in the past, is run a client-side... -
Form Field/ Form Submit Problems (probably an easy answer...)
Hey Everyone.. I have a form that has approximately 7 text fields and 1 checkbox. Generally when this form is submitted(to itself BTW) it works...



Reply With Quote

