Stack Exchange Network

Stack Exchange network consists of 174 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
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [forms]

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

0
votes
1answer
34 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
1answer
26 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 ...
0
votes
0answers
3 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
41 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
25 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
22 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
22 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
0answers
71 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
24 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
27 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
45 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
31 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
21 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
22 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
20 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, ...
4
votes
1answer
72 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
79 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
113 views

Magento 1.9 How to add captcha Into the custom form

Into Magento1 website how to add a captcha into the custom form i have try many tutorials but it is not worked.please check my below local.xml file <customer_account_createwholesale translate="...
0
votes
0answers
84 views

Magento2 - Adminhtml - UI Component switcherConfig

Looking at this example from this question to find a way to change a UI Component form field to do something from another form field (in the example, show or hide the field), and noticed this <item ...
0
votes
0answers
52 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
62 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
45 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
34 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
117 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
54 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
0answers
65 views

How to Create Custom Form in Magento2.1

I want to create a custom form in frontend and Company Name First Name email Phone No. case ID Model So when a customer fills up this form and does submit I want to insert this data in database and ...
0
votes
1answer
33 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"?&...
1
vote
0answers
27 views

How to make optional field

I have created a form <form class="form" action="<?= $block->getUrl('interestbeat/user/post',['_secure' => $this->getRequest()->isSecure()]) ?>);" method="post" enctype="...
1
vote
1answer
124 views

Insert form values in Database. Magento 1.9 [duplicate]

How Can insert front end form value in Magento 1.9xxx, My form field is <form action="#" method="post" name="form1"> <table width="25%" border="0"> <tr> ...
2
votes
2answers
223 views

How to add image-column in admin grid

I have create a form which can upload a image and it saved in to db. in admin side i have a grid to display the table. and it have view action it show all details from db. it only show the image url ...
1
vote
1answer
31 views

form uploaded file not saved in db [duplicate]

I have created form and it has a image uploading field but the image is not saved in db app/code/Dyode/Pricebeat/Controller/User/Post.php <?php namespace Dyode\Pricebeat\Controller\User; use ...
4
votes
1answer
27 views

Custom Page Form and db insertion magento 2

I have created a custom Form and try to store details in databse. but the product url field and image url is not saved in db. app/code/Dyode/Pricebeat/Controller/User/Post.php <?php namespace ...
2
votes
2answers
48 views

Server side validation in magento forms

I have created a form in cms page and direct it submit action to a controller how to do server side validation and save data to my database app/code/Dyode/Pricebeat/view/frontend/templates/pricebeat....
2
votes
1answer
112 views

How can I create custom form in Magento 2?

I want to create custom form for support in my Magento 2 website So how can I achieve this with the use of only one file(.phtml)? (All html and php code should be in one file) It means I want to ...
1
vote
2answers
370 views

How to customize the shipping form?

I want to customize the shipping form, but I don't know how to find that form, I tried but I did not find it! Comment BY USER I only want how can i edit this page, i want edit the shipping form. ...
1
vote
3answers
32 views

form submit action to a controller

I have created a cms page and try to add form in cms page using phtml. and i need a form action to a controller. but shows an error app/code/Ventor/Pricebeat/view/frontend/templates/pricebeat.phtml &...
2
votes
0answers
26 views

Negation in the imports link (UI component)

I've got the fieldset component in my custom UI-form: <fieldset name="default"> <settings> <label>Default</label> <collapsible>true</collapsible&...
0
votes
2answers
55 views

customer address is not stored in Magento2

I am using this code but value is not stored in Magento2 <div class="field telephone required"> <label for="telephone" class="label"><span><?php /* @...
0
votes
0answers
9 views

Saving data to an existing order using a form (backend)

Aim Use a small form to save data to an existing order. Progress I have created a NEW TAB from within the Order View and built a dummy form. Where I need help Now, I just need references/...
0
votes
1answer
57 views

Magento 2 : Postcode / Zipcode and telephone number missing in checkout form

Have just tried to test the checkout form to ensure that my shipping methods are working and the postcode/zipcode and telephone boxes are missing in the checkout form. After doing some research I've ...
1
vote
0answers
14 views

Change tab content with dropdown value?

I'm building a module, where the user can fill his homepage with blocks from the backend. All blocks are taken in an admin grid ui compontent, and there's 3 different kinds of blocks to choose from: ...
0
votes
0answers
78 views

Google recaptcha v2 on Magento 1.9

I've tried googling and searching on here but I'm still receiving spam emails. I am using formbuilder extension to create forms. Below is my code. <script src='https://www.google.com/...
0
votes
0answers
12 views

fileUploader not working with blocks in M2

I have made one block and uploading a image but the thing preview of the image is not displaying. I tried to upload the image with ui-component I was able to do that but i want to upload this with ...
0
votes
0answers
20 views

Magento2: issue with captcha in conact page

In stores --> Configuration --> Configuration customer --> Captcha I have enabled captcha also for "Contact page". After open page contact us the captcha code form is not displayed. When I try to ...
0
votes
0answers
23 views

Magento 1.7 getting newsletter spam subscribes with reCaptcha/honeyspam

We have a Magento 1.7.0.2 webshop and suffer from a lot of spam subscribes on our newsletter. All of the possible subscribe options on our website are being blocked to spambots by HoneySpam or Google ...
0
votes
1answer
35 views

Magento 1.9: How do I know if my form is working? Handling post information

I was looking in implement a form that collect a customers name and email information by writing the information into a CSV file. I'm completely new to Magento and got help with the following code ...
0
votes
1answer
29 views

Spinner Icon is not visible

I would like to display a spinner icon when the user clicks the HTML form submit button and want to hide it when the data is posted to the destination URL. But, In my case, It's not working. Below is ...
0
votes
0answers
36 views

Footer Newsletter form not working, going to error page /newsletter/subscriber/new/

I am using magento 1.9.3.7. Here is my site URL https://dev.unpluggedjuice.dk/ footer newsletter form not working here. After submit the form, it's going to this link https://dev.unpluggedjuice.dk/...