Skip to main content

Questions tagged [forms]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 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 ...
user avatar
1 vote
1 answer
75 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 ?
somutesting's user avatar
3 votes
3 answers
3k 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 ...
Geat's user avatar
  • 854
1 vote
1 answer
116 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.
Adam Scott's user avatar
1 vote
1 answer
207 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
Chetan's user avatar
  • 139
0 votes
1 answer
417 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 { ...
coderGeek's user avatar
  • 545
3 votes
1 answer
359 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 ...
Mric's user avatar
  • 61
4 votes
4 answers
4k views

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

i want hide this field. everyone can help me plz!
NewBie's user avatar
  • 365
1 vote
2 answers
269 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 = ...
Mage Explorer's user avatar
0 votes
0 answers
35 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 ...
Eirettab's user avatar
  • 181
0 votes
1 answer
1k 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 ...
Developper Magento 's user avatar
0 votes
1 answer
1k 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"> <...
anonymous's user avatar
  • 3,752
1 vote
0 answers
667 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 ...
Thomas Harding's user avatar
1 vote
0 answers
276 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="...
summu's user avatar
  • 847
0 votes
2 answers
2k 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'])) { $...
Magento Developer's user avatar
0 votes
1 answer
470 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 ...
Developper Magento 's user avatar
0 votes
1 answer
688 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 ...
Aditya Shah's user avatar
  • 7,617
2 votes
1 answer
432 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 ...
Bhakti Thakkar's user avatar
0 votes
1 answer
1k 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 ...
hallleron's user avatar
  • 365
0 votes
2 answers
2k 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 ...
summu's user avatar
  • 847
1 vote
1 answer
80 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\...
Pragman's user avatar
  • 407
3 votes
0 answers
297 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 ...
berndpeter's user avatar
2 votes
1 answer
42 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!
Oriol's user avatar
  • 357
1 vote
2 answers
2k 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 ...
Wakar Ahamad's user avatar
3 votes
1 answer
407 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 ...
summu's user avatar
  • 847
1 vote
0 answers
62 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 ...
Pragman's user avatar
  • 407
2 votes
1 answer
2k 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 ...
Utsav Gupta's user avatar
  • 1,243
1 vote
0 answers
104 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 ...
3434's user avatar
  • 213
1 vote
1 answer
300 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 ...
user72861's user avatar
1 vote
1 answer
2k 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,
Adarsh Shukla's user avatar
5 votes
1 answer
608 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 ...
Allysin's user avatar
  • 260
1 vote
1 answer
1k 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.
Atif Ameer's user avatar
0 votes
0 answers
140 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
nikhil gantyala's user avatar
1 vote
2 answers
6k 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="...
Pragman's user avatar
  • 407
1 vote
4 answers
3k 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 the ...
Michael Guimaraes's user avatar
0 votes
1 answer
2k 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 ...
jargoud's user avatar
  • 13
2 votes
2 answers
1k 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 ...
Adam's user avatar
  • 31
1 vote
1 answer
148 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 ...
suman's user avatar
  • 53
1 vote
1 answer
224 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 ...
Ezwan's user avatar
  • 11
2 votes
1 answer
255 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 ($...
Bhakti Thakkar's user avatar
1 vote
0 answers
46 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="...
ChintsKhorasiya's user avatar
1 vote
0 answers
114 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="<?= $...
Chethan Sreenivasa Murthy's user avatar
0 votes
1 answer
1k 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 ...
Jaisa's user avatar
  • 2,626
0 votes
1 answer
606 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 ...
bvprogramit's user avatar
0 votes
0 answers
1k 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(); ...
treyBake's user avatar
  • 141
1 vote
1 answer
1k 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 ...
Gaurav Agrawal's user avatar
0 votes
0 answers
107 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:...
Jafar Pinjar's user avatar
  • 1,949
2 votes
2 answers
3k 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 ...
Ramkishan Suthar's user avatar
0 votes
2 answers
312 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.
Shoaib Saleem's user avatar
0 votes
2 answers
229 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); ?> <...
Morgan Tartreau's user avatar

1 2
3
4 5
15