Questions tagged [forms]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Add custom checkbox next to custom product attribute input page in product edit page In Magento 2 backend

I created a custom attribute for product called keybrand, i allow this product attribute can be editable from magento 2 backend. Now i want to add the check box input next to this custom attribute ...
0
votes
0answers
9 views

How to check the number of elements in a block before submitting a form

I have a feedback form and there is a separate block in which I always have a different number of elements, since users always choose a different number of elements. How can I check before sending ...
0
votes
0answers
25 views

Magento2.3 - Form messages not displaying

In my Magento website, no Success/Error message is displayed after submitting Registration/Contact form. I have tested this both on my custom theme and default luma theme. Message block exists in ...
0
votes
0answers
15 views

Label in Selection Column

I would like to add a label next to the selectionsColumn to be able to identify what each one is, I searched for topics here and in general searches I found nothing. where can i make this change
0
votes
1answer
49 views

Magento 2 Add custom field to customer registration form

I want to add custom fields to my Magento 2 customer registration form. Should I use a DB UpgradeData script to add fields to the Magento DB table, or should I add my own table? If I add my own table,...
0
votes
0answers
11 views

My form does not save image in the DB

I saw that there are already some topics with that title but I still couldn't find what could be wrong, although all the other fields are saving, my image line is still null. My image in database ...
0
votes
0answers
35 views

Magento 2 - Login form in user account header

I want to load the login form into the account dropdown in the header. Therefore I duplicate the default customer login form and loaded it into the dropdown phtml template file using the following; &...
0
votes
0answers
16 views

How to allow only use the english language to fill the form fields in magento 2

In Magento 2, We have a registration form with some customization, But some attackers tried to enter the anonymous values inside the text fields that anonymous values are in the different languages. ...
1
vote
0answers
19 views

Custom Form Call using CMS page will not show Magento 2 Captcha code

When i call form using direct URL http://192.168.1.35/m234/customemail/index/index OR http://192.168.1.35/m234/customemail/ it will show Captcha code but when i call this same form using CMS page like ...
0
votes
0answers
17 views

Magento 2 - Display product list filtered by price range

The module I'm working on has a form with three inputs, Low Range, High Range and Sort By Price. For some reason it's not returning the product collection at all. I'm getting the following error: ...
0
votes
0answers
24 views

I created a form and that form data is not going to grid

Here is the code doctorsform.phtml <div class="myform" style="top:47px" > <div class="col-md-6 col-xs-12 contact-custom nopadding banner"> <h3>...
0
votes
1answer
13 views

I created one landing page, when customers fill all the details it should display in the custom module grid in magento admin panel

I created one landing page, when customers fill all the details it should display in the custom module grid in magento admin panel, how can i implement, <form action="">, what to put in ...
0
votes
0answers
16 views

how to add custom message (using static block) in magento2 every form

How to add same custom message (using static block) in magento2 every form. example : login form, registration form, contact us form, forgot password form etc. thanks in advance.
1
vote
2answers
86 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
85 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
55 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
47 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
42 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
25 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
74 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
51 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
10 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
4 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
83 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
18 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
56 views

Magento 2: Custom Setup Wizard to be Implemented 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
122 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
36 views

duplicated tab in form Magento 2

$fieldset->addField('media_gallery', 'note', [ 'label' => '', 'title' => __('Media Gallery'), 'name' => 'media_gallery', // '...
0
votes
1answer
31 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
42 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 ...
6
votes
0answers
84 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
43 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
33 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'); $...
2
votes
0answers
46 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
14 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
45 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
118 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
243 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
77 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
28 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 ...

1
2 3 4 5
14