Questions tagged [forms]

Denotes questions about forms in Magento (admin forms, frontend forms, management)

1
vote
3answers
32 views

How to redirect page to cms page ie.(carrer.html) via controller file?

Mage::getSingleton('core/session')->addSuccess('Your inquiry was submitted and will be responded to as soon as possible. Thank you for contacting us.'); $this->_redirect('*/*/'); return;
0
votes
1answer
48 views

How to create custom form in Magento 2.2.3

I like to add custom form with submit button. After submitting the form I need to get details to my email. Please let me know how to start. Thanks in advance. Okay i created Returns/Cform/...
0
votes
0answers
12 views

Edit Order return Guest form

I like to edit order return guest form. I edited in app/design/frontend/[theme]/Magento_Sales/templates/guest/form.phtml but form settings are in vendor/magento/module-sales/Helper/Guest.php. ...
3
votes
2answers
33 views

How to create a custom form?

I am trying to create a create a page in block but I'm trying to add a custom contact form. I can view it in frontend but it wouldn't work its not doing anything when I click submit. is there anyone ...
0
votes
0answers
15 views

Magento2 people on same network logged into each others account with form keys disabled

With magento config:set admin/security/use_form_key 0 People say that sometimes they are logged into each others accounts. I'm not sure how this is possible since they never log into each others ...
1
vote
1answer
23 views

How to add Mobile custom field in Customer Registration Form in magento?

How to add Mobile custom field in Customer Registration Form in magento ?
0
votes
0answers
45 views

How to create dynamic fields in checkout?

I want to crate a custom checkout step in Magento 2, I need dynamic fields based on backend configuration. How can i do that? Backend Configuration: The fields should be display as per the backend ...
0
votes
1answer
35 views

“Product chooser” field for UI Component form

I've searched everywhere but I'm unable to find a field that can be inserted into a UI Component form that allows the user to select a product. It can be achieved easily for categories with the ...
1
vote
1answer
15 views

Add custom Form to Review and Payments page

There are many examples online about adding a custom form with custom fields to the shipping-step, but I would like to know how to add a custom form with fields to the billing-step page.
0
votes
0answers
13 views

How to save phone number in billing address for customer in magento 2

I wish to save phone number for billing address while customer registering their account. I have added the custom input field for "phone number" in create account form. This number should be saved as ...
1
vote
1answer
31 views

Magento 2 : How to create custom Contact form

I am using Magento 2.3 As per my requirement. I have to create multiple form in my website So can anyone provide me appropriate instruction for how can i create custom form like contact form Thanks
0
votes
1answer
16 views

Magento 2 : Form data not saving

I have an XML form on the backend. It has the save button the code for which is this - class SaveButton implements \Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface { ...
3
votes
1answer
32 views

Dynamic forms on backend

I'm trying to make a questionnaire that is administrable on backoffice. To make it, I'm tying to add dynamicaly some new questions by clicking on a button using Javascript. To do so, I removed the ...
3
votes
3answers
61 views

Magento 2: How to hidden tab fieldset in form ui component?

i want hide this field. everyone can help me plz!
1
vote
2answers
22 views

Pass current sku number to the custom phtml form before submission ( data-bind, placeholder)

i'm trying to past the value of $current_sku to the end the $title text field input on the form. How can I achieve it? Correctly, it's showing in the text input hints.. <?php $objectManager = ...
0
votes
0answers
13 views

How admin form are submitted in magento 2

I'm wondering how form inputs are interpreted in magento2 admin grids. For example, add an input (manually via navigator console) in cart price rule creation form. The input value will not be sent ...
0
votes
1answer
28 views

how to add js in custom form in backend magento 2

I have used this code in my form to manage the field id_pdt that is a foreign key so i will put a text from bar code and then search in mu custom table to find if the sku exists in table product and ...
0
votes
0answers
17 views

Adding reCaptcha to Custom Widget Form (2.3)

So let's say that I've created a Form Builder in the form of a widget. I'm looking to get the default captcha system into any such widgets added to a page, but can't quite figure out how I'd go about ...
0
votes
1answer
48 views

How can I add captcha to newsletter form?

I've added captcha to contact us form by following this I'm wondering while its not working with newsletter form ? here's what I tried. <cms_index_index translate="label"> <...
1
vote
0answers
25 views

Magento 1.9.2 - getRequest()->getParams returning with empty array

I'm working on a legacy Magento site which has a custom contact form modelled on https://inchoo.net/magento/magento-email/magento-custom-email-contact-form-with-notification-system/. At some point in ...
1
vote
0answers
19 views

Magento form validation doesn't work as user type in

I have added form validation for the customer address form. but the issue is, validation works when I click submit button, it should work as user types in(key-up). city text box <input type="...
0
votes
1answer
52 views

Direct use of $_FILES Superglobal detected. In magento 2

Direct use of $_FILES Superglobal detected. I have Used for get image file in backend. protected function getTmpFileName() { $tmpName = null; if (isset($_FILES['groups'])) { $...
0
votes
1answer
26 views

How to get the value of input of custom attribute before the saving product in Magento 2

I want to recuperate the value of the input of two attributes of the product to do a request o database to recuperate some value from the custom table according to the value of the two attributes ...
0
votes
1answer
31 views

How to add draggable-handle for configure product variants in Magento 2?

How to add draggable-handle for configure product's variants in Magento 2 ? I can see there is a similar behavior in the related products when editing a product. Like related products Row drag ...
2
votes
1answer
30 views

Magento 2.1.7 - Unable to send form data to controller using AJAX

I am trying to fetch input value but I am unable to get values in the controller. Here is my code, Controller\Index\Index.php <?php namespace Crud\Crudatfrontend\Controller\Index; class Index ...
0
votes
0answers
58 views

Set default value in customizable option for radiobutton, checkbox, multiselect in magento2

I want to keep the custom option default selected for drop-down, radio-button, checkbox, multi-select. For Drop down i followed below link & it is working fine but not in case of radio-button, ...
0
votes
1answer
33 views

Remove shipping form custom attribute from address in checkout

I followed the first steps of this documentation (https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_new_field.html) to add a new input field (date of birth) to the shipping address form ...
2
votes
0answers
38 views

Magento 2.3 - AttributeMerger plugin is updating incorrect element

I am trying to either add an additional class "browser-default" to the country_id select field, or replace the existing "select" class with "browser-default" I put together a quick AttributeMerger ...
0
votes
2answers
61 views

“Telephone” is a required value not working in customer edit form

In my customer edit form, for telephone phone, required field validation is not working when I leave the telephone field blank. The required validation works for every field except for the telephone ...
1
vote
1answer
32 views

Magento 2 Contacts Page has 2 versions

I'm trying to develop my contacts page but I'm receiving some unusual behaviour. I've created the Contacts Page mydomain.com/contact and the contact form gets loaded via: {{block class="Magento\...
1
vote
0answers
65 views

Magento 2.2.3 Vat-Id Field not showing Shipping or Billing Address

I have enabled the Show Vat number option in the frontend, but the Vat-Id field is only displayed on the sign-up form. I can not add the VAT number on the shipping or billing address forms on the ...
2
votes
1answer
31 views

How can i add a extra form on checkout page?

I would like to be able to add some forms in the checkout page, saving the information in the BD. I have Magento 2.2.4 How could I do it? Where is the file that I would have to modify? Thanks!
1
vote
2answers
177 views

How can I manage admin form via template in Magento2?

I have a phtml file having an HTML form, I want to use it as an admin form. To manage admin form magento2 either uses "UI Component" or "_prepareForm()" block method. I've created a module using ...
3
votes
1answer
43 views

Customize Account setting form in Magento 2

In Magento 2, the previous Account Setting edit form has a different layout, like for changing password user has to select the checkbox and then text boxes for password updates pop up, I am changing ...
1
vote
0answers
21 views

Custom Customer Attributes not showing in user account - Magento 2

I have created 3 custom customer attributes. So far I have them saving and displaying correctly in the account creation page and for the admin in the backend. In the users account on the frontend ...
2
votes
1answer
152 views

Magento 2.3 How to change the order of customer account form fields with custom module?

I created the module name "Name_Module", Now I want to change the order (position) to " create customer account form fields ". How could I achieve this functionality? Also, need to check if the ...
1
vote
0answers
43 views

How to add New Field in CC form?

I am using an extension for payment cc form,. I added zip code field in my cc form and I want to save zipcode from the zipcode field into my database. So, if user comes again there is no need to enter ...
0
votes
0answers
22 views

One page to select products and fill checkout form

Is there a way to simplify the order process like this: Select the products to display on a special page Once products are selected, the customer can scroll this page and select the desired products,...
1
vote
1answer
31 views

How to use an accordion into another accordion ? (or tabs or collapse)

I'm trying to put an accordion into another, and the lonely way I found is to not use the same widget into another. Exemple, the parent is an accordion, the different children can be tabs. The ...
1
vote
1answer
207 views

how to create city state country dropdown UIComponent in magento 2 admin form

how to create city state country dropdown UIComponent in Magento 2 admin form, like when we select one country then state of that country is shown. Thanks,
5
votes
1answer
142 views

How to modify Bank Transfer Payment OR Cash On Delivery Payment methods? Looking to rename one of those and add extra fields

Magento 1.9.4 Porto theme We urgently need to modify either the 'Bank Transfer Payment' payment method or the 'Cash On Delivery' payment method. What we are after is: label the existing form text ...
1
vote
1answer
171 views

How can I add multi tab forms on admin

With singleton table CRUD I successfully created a form I want to spread it to multi tabs.
0
votes
0answers
138 views

Magento 2: Knockout js dynamic content binding repeats the same element

I have created a custom form in checkout page. It contains a drop down field and one ul list. By default there is few li tags(For example,4). When we change the dropdown the li tags will be changed( ...
0
votes
0answers
21 views

Upload image in contact form

Can we add an option to attach files/images to form submission? This is so that customers can attach photos of any faulty items. Please help me
1
vote
2answers
648 views

Magento 2. Make Address Fields Not Required at Customer Registration

I have made the Address fields visible for customer registration by creating customer_account_create.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
1
vote
3answers
484 views

Magento 2.3 can't upload product images

Every time i try to upload product images on my Magento 2.3 website, i get the following error: A technical problem with the server created an error. Try again to continue what you were doing. If ...
0
votes
1answer
308 views

How to create a custom tab with custom attributes in Customer admin

I am a beginner in Magento (version 2.3). I am looking for a solution to create a form with custom attributes, which would be displayed by clicking on a custom tab in Customer admin. I have ...
1
vote
2answers
60 views

How to save data from a checkout text form

I've tried multiple ways and sources of trying to save data in Magento 2.3 and I cannot think of what more I can try to get this working. I'm trying to add a simple textarea and save the data somehow ...
1
vote
1answer
29 views

how to open new form in another phtml without url change

I have put the form for add new address of Address book in address book index page itself without redirecting it to a new page for adding a new address. I need to open the form html on click of add ...
1
vote
1answer
27 views

Form container can't set child form / create form block

My goal is to have a form into a form container. When I call directly my form in my controller, it works, but when I call the container, I have this issue : Fatal error: Call to a member function ...