Instead of asking our clients to subscribe using multiple forms, I am trying to join the forms together with a checkbox option. Forms for the subscription service have unique Data-ID’s, otherwise they are identical. Form 1: <form class="form" id="subForm" action="https://WEBSITE/LINK/HERE" method="post" data-id="987ZXY"> <label>Email </label> <input autocomplete="Email" aria-label="Email" id="fieldEmail" maxlength="200" name="form" required="" type="email"> <button type="submit">Subscribe</button> </form> ..
Category : forms

I’ve been working with Liferay 7 for a while and needed to create a feedback form with prefilled values. I created a feedback form and a page, where it’s shown and where I could add Javascript. The user clicks on a link ("Did you find this helpful? Yes/No") and it takes you to the feedback ..
When the user type localhost/index.html?hiddenname=abcd at url, the system automatically updates the element"hiddenid"’s value. The below code is logically right but it fails. Thank you all. index.html <!DOCTYPE html> <html> <head> <script> function call(){ document.forms["form1"].hiddenname.value=hiddenname; console.log("function run"); } </script> </head> <body> <form name="form1" action="end.php"> <!– <input type="text" id="usernameid" name="user_name" value=""/> –> <input type="hidden" id="hiddenid" name="hiddenname" ..
<div class=’modal fade collabform’id=’collabrequest".$useremail."".$postid."’ tabindex=’-1′ role=’dialog’ aria-labelledby=’Title’ aria-hidden=’true’> <div class=’modal-dialog modal-dialog-centered’ role=’document’> <div class=’modal-content’> <div class=’modal-header’> <h5 class=’modal-title’ id=’Title’>Collab</h5> <button type=’button’ class=’close’ data-dismiss=’modal’ aria-label=’Close’> <span aria-hidden=’true’>×</span> </button> </div> <div class=’modal-body’> <form method=’POST’ action=” id=’collabForm’ > <textarea rows=’3′ class=’form-control’ name=’collab_message’ id= ‘collab_message’ placeholder=’Proceed by sending a message.’></textarea> <input value=’".$useremail."’ name=’useremail’ id=’useremail’ style=’display:none;’> <input value=’".$postid."’ name=’postid’ id=’postid’ ..
I am working on a web page that needs to be able to record audio in the browser and attach the recording to an input field for posting to the server. I have found a lot of documentation to take an audio file from an input field into an audio field but not the other ..
the submit button will be disable when the user submit the form after validation. However, it is not work. How can I do that? My purpose is that the user only submit once in order to avoid many duplicate email. There are some tips for the code below. Please feel free to answer if you ..
I’ve been searching online to solve this, but all the potential solutions I’ve found didn’t work for me. Objective: Validate a form (a specific input field), preventing the form to be submitted. Context: The application is used for financial management. I have two models (operation and movement) being submitted on the same form. Operation has_many ..
I am using a pug template to expose an array of objects, formatted as a table. Here is the pug template: each trans,index in property.transactions .tr .td input.transInput(type="text", name=`salesPrice${index}`, id=`salesPrice${index}`, value=(trans.salesPrice).toLocaleString(‘en’, { style: ‘currency’, currency: ‘USD’, minimumFractionDigits: 0, maximumFractionDigits: 0})) I am trying to build a RestAPI to make edits, but when I try to ..
My form structure is in react and uses ant design form. It looks like this : const fn=()=>{ const formData = useRef(null); const [formA] = Form.useForm(); return ( <Form> form={formA} <Form.List name="userCities"> {(fields, { add, remove }) => ( <> {fields.map(field => ( <Space key={field.key} style={{ display: ‘flex’}}> <Col><Row> <Form.Item {…field} label="Cities" name={[field.name, ‘userCities’]} fieldKey={[field.fieldKey, ..
I have one mistake why my form is not valid. The reason for this is this json phone: { areaCode: null countryCode: 1 e164: "+11234567" extension: "" nationalNumber: 1234567 nationalNumberWithAreaCode: 1234567 regionCode: null type: "UNKNOWN" } Probably mistake is any empty field -> extension and regionCode but ok. My form is currently invalid and I ..
Recent Comments