Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [forms]

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

2
votes
1answer
21 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
22 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
15 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
27 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
41 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
29 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
37 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
30 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
48 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
35 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
19 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
83 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
36 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
20 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
21 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
95 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
111 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
67 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
65 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
17 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
339 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
251 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
161 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
45 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
27 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
20 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 ...
2
votes
1answer
62 views

What is the use of getFormActionUrl()?

In Magento2.1.10 I am trying to make admin grid module and found below function in given path \app\code\xyz\Grid\Block\Adminhtml\Grid\addrow.php public function getFormActionUrl(){ if ($...
1
vote
0answers
27 views

Forms not working with array fields

Don't know something has gone wrong. Suddenly on my magento (1.9) site forms which have array fields are not working. for example :- <input type="text" name="inputfield['first']" id="...
1
vote
0answers
26 views

form validation is applying to login form but not for other forms

For me login form is working (used data-mage-init='{"validation":{}}' in form and minlength:6 ). But the same is not applying for the other forms <form class="form-address-edit" action="<?= $...
0
votes
1answer
60 views

The form inside the popup failed to submit the data in magento 2

I have created a button in product Detail page. While clicking the button, it will show the popup, the popup contains form. After filled the details in the form , the submit button is not working ...
0
votes
1answer
98 views

How to include a captcha inside the share wishlist form in magento 1.9

I am trying to add the captcha core/text_list block to the wishlist_index_share handle in the wishlist.xml layout file but the block is not displayed. Here is my code: <wishlist_index_share ...
0
votes
0answers
245 views

Saving Form Data to Custom Table Magento2

I have a form that links to a controller and my goal is to save the data into my custom vendor_module_table public function execute() { $post = (array) $this->getRequest()->getPost(); ...
0
votes
0answers
84 views

Custom form field not showing validation message

I have created one custom form and implemented magento validation. Magento validation works for all fields but message of one field is not displaying. I have added datepicker in this field. Below is ...
0
votes
0answers
33 views

Product admin edit issue in magento 2

I am getting below error in console, when i try to edit product in admin Uncaught TypeError: data.some is not a function Referred below link and used that didn't solve my issue. Uncaught TypeError:...
1
vote
2answers
222 views

How can we set store value in UI form Magento 2

I have a UI form in admin with store switcher. I need store_id in post data. As all can see store_id in url when I change store from store switcher but once I submit it I am not getting any store ...
0
votes
2answers
55 views

Move search form right after top menu in Magento 2.2

How to move mini search form after header menu? I am using <move element="top.search" destination="catalog.topnav" after="-"/> to achieve this but no success.
0
votes
2answers
26 views

Get param : Controller of custom product interface

I've created a page where I have a list of products. In each row (1 row = 1 product), I have a button "add to cart" : <?php $postParams = $block->getAddToCartPostParams($_product); ?> <...
0
votes
1answer
23 views

Two different form registration

I created under my theme/Magento_Customer/templates/form:register.phtml and register2.phtml and i put this in customer_account_create under mytheme/Magento_Customer/layout, and i created a module to ...
0
votes
0answers
22 views

create two differente form registration for customer magento 2

I want to create two differente form registration for customer and to set a specific group name for every customer so how to do that and what do i have to override (block , Controller, layout, ...
6
votes
1answer
256 views

How to add form element CANVAS using ui component magento admin form

I want to add Canvas field element using UI component admin form. My requirement is i have a ui component form i want to add Canvas field. check below screen shoot. As per above screen-shoot i ...
1
vote
1answer
204 views

How to create a dropdown list in a form of registration for customer magento 2

I want to create a new attribute named status as a dropdown list that contain 6 static values.
0
votes
0answers
126 views

Magento2 - How to send mail of form data using AJAX in custom form?

I have created one inquiry form in magento 2. now I want send data to given EmailID using ajax. here is my code <form> <div class="form-group"> <label for="Full Name">Full ...
0
votes
3answers
187 views

how to call phtml file in static block?

I have created phtml file, app/design/frontend/Smartwave/porto/Magento_Contact/templates/inquiry.phtml <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license ...
0
votes
1answer
46 views

Magento 2.2.6: i want to add form on banner

I want search form in banner so, how to add form in banner in home page in magento 2.2.6
0
votes
0answers
35 views

Magento : Send/Mail custom form data in PDF file

I have create one module for custom form fill by the user while click on submit button the form send two person one for user and second for website owner. This is working fine but i want to send this ...
0
votes
0answers
14 views

Add further checkout form validation Magento 2

I am using Magento 2 and the checkout form is allowing people to enter spaces rather than characters for fields like 'address'. How do I add further validation checks to the checkout form ...
1
vote
2answers
430 views

When we add custom form field in Shipping Address form in Magento2 checkout page,it doesnot reflect in frontend

I am using Magento 2.2.3. I tried "How to add new Shipping address form field in Checkout Page".Below is my code. Vendor/Theme/registration.php <?php \Magento\Framework\Component\...
0
votes
2answers
141 views

How can I add block to a form element?

I want to customize category_form.xml in such a way so that, I can add custom block to the form element [say: Category Name]. Is there a way to add custom block to the Element?
0
votes
1answer
34 views

form not showing when i click on custom module menu [duplicate]

Form not showing when clicking on custom module menu. Here's my code: /home1/dukaania/public_html/testing2/app/code/Test/Banners/etc/adminhtml/menu.xml <?xml version="1.0"?> <config xmlns:...
2
votes
2answers
61 views

form not showing when i click on menu

form not showing when I click on the menu that I created custom module. Here's my code: /home1/dukaania/public_html/testing2/app/code/Test/Banners/etc/adminhtml/menu.xml <?xml version="1.0"?&...