I have an input text field in my form which has an important new attribute added via JavaScript. The attribute name is fieldid.
Is there a way to retrieve this attribute and its value from the view after the form is summited?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Attributes on form elements are not passed on to the server when forms are submitted; only input element values are.
The way to add extra information to be sent back to a server on a form submit is by adding additional
<input />elements to your form, specifically<input type="hidden" />elements.E.g.
adds a new field
foobarto your form data with the valuespam and eggs.