Questions tagged [forms]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
69 views

Magento 2 : Confirm Form Resubmission Error in Controller

I'm getting this Confirm Form Resubmission error in the Controller while going back to the browser. No errors found in Logs and Console. I'm getting this below in headers, in the Network tab. ...
0
votes
0answers
29 views

Magento 2: How to Pass popup modal form data to the custom controller?

I want to redirect to the custom controller on the Continue button in the popup modal form. Vendor/Module/etc/frontend/routes.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3....
2
votes
0answers
26 views

Magento 2 : make a multiple step register form

I want to make a multiple-step register form in Magento 2. How can I do it? Any helps? Thank in advance.
0
votes
2answers
46 views

Adding data to database from custom form

I'm able to fetch data from custom form but not able to put it in database table. Here I post details of model and controller SimpleMagento\Custom\Model\Name.php class Name extends \Magento\...
1
vote
0answers
39 views

Adding data to database [closed]

I'm able to fetch data from custom form but not able to put it in database table. $model = $this->_name->create(); $entity = $this->getRequest()->getParams(); $model->...
1
vote
0answers
24 views

Invalid form key on admin login

Attempting to get a magento 1.14 site setup in Vagrant. Store seems to be loading correctly, I'm able to view the frontend, admin login screen and n98magerun let's me edit conglfigs, clear caches ...
0
votes
1answer
42 views

Magento 2 upload image not showing in post form data

I have created a custom module and in the admin New/Edit form I added the image field but when I submit the form with uploading image, it won't show the image in save controller. I used to add below ...
0
votes
1answer
41 views

Magento2 admin edit form prepare form registry error

I have created Magento2 admin edit form but on my edit form I got the error as below: Fatal error: Uncaught Error: Call to a member function getId() on null in /app/code/Custom/Module/Block/...
0
votes
0answers
9 views

create quick order form at product page

i have create quick order button using following code at /app/design/frontend/Smartwave/porto/Magento_Catalog/templates/product/view/addtocart.phtml but i need when popup modal open then show form ...
0
votes
0answers
20 views

Magento 2: Add country and state dropdown in custom checkout input form

How can we add country and state dropdown in custom checkout form. I tried below in checkout_index_index layout xml file but it is not working. .... <item name="country_id" xsi:type="array">...
0
votes
0answers
13 views

Magento 2 get Controller data in the same page it was sent

I got help to accomplish send data from Controller to a Block, and then display the info from Block in a template. The thing is that I want to send a form and display the data from that form in the ...
0
votes
0answers
3 views

Magento 1 - Get file input from form when place an order

I created a customized step in the checkout and within this step I created a form with an input type="file". I wish that when I click to confirm the order I could take the value of the input file and ...
0
votes
0answers
13 views

how to sort data in two at once custom tables on form.php

I have this form I can do the sort in the top table, but I can not do in the bottom. How to make it possible to sort immediately in 2 tables? my file structure code on form.php protected function ...
0
votes
0answers
34 views

Magento custom form with module Step By step by step

I am new in this field... and I want to learn... Please help me how to create simple form in Magento 2.0.
0
votes
2answers
56 views

Why I'm seen “Invalid Form Key. Please refresh the page” in the frontend?

Sometimes I'm receiving this message below during the customer login after being changed the cookie domain through the admin panel. Do you know why and when this message shows up? Invalid Form Key....
0
votes
0answers
18 views

Show search results from specific “FORM” in custom view.phtml template (view_custom.phtml)

In magento1 - I have this form on my web site: <form method="post" action="https://www.websitetest.com/tonersearch/index/search/" location=" " class=""> <div class="amfinder-vertical" id="...
0
votes
0answers
17 views

Magento 2: Duplicate admin form in block

I have a simple module portfolio, and I want to duplicate admin form category just change the name to "Tag", I have tried and created the new grid but it is using the same form as the category. here ...
1
vote
0answers
32 views

Magento 2: Custom Setup Wizard Implement in Custom Module

I would like to implement setup the custom steps Wizard in Magento custom module on the Magento admin. Reference: https://devdocs.magento.com/guides/v2.3/pattern-library/navigation/wizard/wizard.html#...
1
vote
1answer
75 views

Magento 2 load dynamic values to select field in XML

i am new in Magento development. I am trying to create a new module for adding dynamic fields for product edit page. Now I was able to add the fields in admin's product edit page. now I want to show ...
0
votes
0answers
32 views

How can I modify default Magento Form Value?

I want to modify the value of the Associate Website options in Customer > Manage Customers > Add a New Customer. The default value of Associate Website option is 'Admin' but I want to set to Main ...
1
vote
1answer
35 views

duplicated tab in form Magento 2

$fieldset->addField('media_gallery', 'note', [ 'label' => '', 'title' => __('Media Gallery'), 'name' => 'media_gallery', // '...
0
votes
1answer
28 views

Custom form in backend is redirecting to /admin

I've created a custom form in my backend. I can access it via /admin/export/export/index. But when I submit my form, Magento is redirecting me to my admin home page. My form needs only to have 1 ...
0
votes
1answer
30 views

Create Custom POST form without grid and model in magento 2

I need a custom post form in Magento back-end where I can select some fields and post form , on its post action I need to download a csv depending on form fields. This post form has dependable fields ...
5
votes
0answers
70 views

How to create Dynamic rows in custom admin form?

I want to create a form field which has dynamic rows in that page. Also, I want to store the form data in database table. I already referred this link >> https://github.com/bbakalovGlobal/...
0
votes
1answer
42 views

Search is not working by product attributes

We have added couple of products on our Magento 2 site. In the home page of the site, we have a search form and there we have put input boxes as product name, from, to and location. We want to display ...
3
votes
2answers
27 views

Magento 2 Set $_POST to an empty Array()

I can't seem to find a way to set $_POST to an empty array. I have a form in phtml action to self I can get $_POST values the following ways: $this->getRequest()->getPostValue('form_key'); $...
3
votes
0answers
45 views

in custom module ajax-loading form translations not working magento 2.3

in ajax-loading form Change English it to italiano and it works but italiano to English not working proper. once transalte to italiano then switch to english store not transalte to english ...
1
vote
0answers
12 views

Add file type to data persistor

I have a custom form that has a input type file everything works fine except for the data persistor. Its working for text input types where you can just insert the request params in the data persistor....
0
votes
2answers
31 views

How can i add a telephone field at the time of customer registration form in magento 2?

There are an option is required selected Please go to stores=> configuration => customer configuration and enable mobile number. So let me know if is there anywhere else I need to change? Thanks in ...
0
votes
0answers
96 views

Not getting region dropdown options after changing the country in magento 2 admin edit form

How To Add Country And State Dropdown In Admin Side in Magento2 From the above link i have added the code for the country and state dropdown in edit form but i am not the state options while changing ...
1
vote
3answers
38 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;
1
vote
1answer
183 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
65 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. ...
4
votes
2answers
45 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
26 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
50 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
314 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
19 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
28 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
49 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
29 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
48 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
584 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
55 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
19 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
58 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
44 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
237 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
64 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 ...