Skip to main content

Questions tagged [input]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
82 views

Scroll to the top of page after error message

When I add something into input field and have message like "This field is required" the page will scroll to the top and shows these error messages. Maybe it comes from class mage-error, but ...
Veronika Petkeviča's user avatar
0 votes
1 answer
95 views

Magento 2 system configuration searchable dropdown how can i impliment

<field id="dropdown_example" translate="label" type="select" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1&...
Jaydip Pandey's user avatar
0 votes
1 answer
48 views

Magento 2 - Blocking rude words in Shipping Address

I work for a samples based company and recently we have had a run of sample orders ordered as jokes, often with offensive names in the shipping details. Is there a plugin or way to block offensive ...
Nick's user avatar
  • 1
0 votes
1 answer
25 views

How do I create a Magento block that has input fields for to store values in variables?

My code for displaying rotating messages is currently hardcoded and I have to go in and update the messages manually. I want to replace this with a new block in magento so other people can just go ...
Alyx's user avatar
  • 1
0 votes
1 answer
369 views

Increasing and decreasing the input quantity using Hyva / AlpineJS

I'm working on the input using Hyva, so with AlpineJS. I would need to understand how I have to do to make the input look like in the image using the + and - to increase or decrease the quantity.
Alessandro Scalesse's user avatar
1 vote
1 answer
176 views

Magento 2 In the UI form, Edit urlInput is not working properly

I've created a UI form with a URLInput field. For creating new entries, it works fine. However, the 'open in new tab' setting is always checked in the edit form. The value has been binded correctly. ...
Jancy Abraham's user avatar
0 votes
1 answer
11 views

modify input allow_error_count in magento import

I'm new to magento development and I find myself able to modify the allow_error_count input by backend when making an import. Some clue?
Jean Pier R. Monti's user avatar
0 votes
0 answers
96 views

Magento 2 : Disallow Specific Phone Number

We would like to disallow some specific phone numbers, especially in the checkout. For example the phone number: 0000000000 or 1111111111. How can we disallow these phone numbers?
JGeer's user avatar
  • 1,418
1 vote
1 answer
504 views

How to update shipping methods on street field input change on checkout page?

I want to call "estimate-shipping-methods" api on street field input change as it is called when the input of postcode, country field.
Mehran's user avatar
  • 492
0 votes
1 answer
839 views

Knockout JS Implementation with Phtml ReferenceError: Unable to process binding

After a lot of search in this forum I have decided to write a question by myself. I am trying to integrate my knockout page into a phtml file in way to update the input layout after a file has been ...
Narak's user avatar
  • 1
0 votes
1 answer
448 views

How can I disable the glowing blue border on focus from all input fileds

I wonder if you could help. I would like to disable the glowwing blue border on focus from all my input fields and replace it with border-bottom: 1px solid black. I found this input#search:focus:not([...
PawelP's user avatar
  • 11
0 votes
0 answers
179 views

Magento 2 text input source model

Has anyone found an example of the product attribute with input type text and a source model? With a select input type - it is easy, but I cant find anything with text type.
Macas's user avatar
  • 487
0 votes
0 answers
73 views

How to create map Pick up Location input in Frontend. Magento2

I want to create a pick up input type in frontend where the user will select the location in map n then I'll get Latitude and Amplitude. Like you can see from the image. How can I create this? thanks
Asad Khan's user avatar
  • 1,486
1 vote
0 answers
175 views

Magento 2 add text input to massaction from dropdown

In magento 1, if I wanted to add a text input to send a custom value with my massaction to my controller, I would do something like: $this->getMassactionBlock()->addItem('add_ship_method', array(...
joeybab3's user avatar
  • 378
0 votes
1 answer
124 views

the shipping information was unable to be saved. Verify the input data and try again in Maneto 2.3.2

we are facing issue the shipping information was unable to be saved. Verify the input data and try again when customer is doing the checkout Magento ver. 2.3.2
user avatar
1 vote
1 answer
293 views

Magento2.3.4 Add green border when validation of input is succesfull on Checkout Page

When input is invalid we can see red border and error message below. Is it possible to add green border when input is valid ?
maya5510's user avatar
0 votes
1 answer
129 views

Set input length for checkout form magento 1.9

How do I go about setting the character length for input forms, preferably checkout, on magento 1.9. I'm aware that Magento has a MaxLength variable but am Unsure on how to implement it.
totneschap's user avatar
0 votes
0 answers
229 views

Magento2: Not able to check uncheck a Checkbox value while editing the page?

I am not able to check and uncheck a Checkbox value and save in edit page in Magento2: My input field: <label class="check_tick">Shipping <input type="checkbox" name="...
Amy's user avatar
  • 935
0 votes
1 answer
1k views

Datepicker calendar always show

I need to always show calendar popup in div below input with datepicker. There is my code <div class="field date"> <input type="text" name="datepicker" id="datepicker" value="" ...
Oleg Lavrenko's user avatar
0 votes
1 answer
256 views

Magento 2 admin fieldset form input float issue

I have created admin form with fieldsets. The issue is it isn't accepting float values and rounding them to integer values. $fieldset->addField( 'free_over', 'text', ...
Arsalan Ul Haq's user avatar
1 vote
0 answers
46 views

Save Product with value from database // ProductName + DB-Value

I am a Beginner. It was a challenge to code the module. But here I just can not get on. I hope someone can help me please. The output of my module is working on view.phtml: <?php $custominput = ...
PoromBany's user avatar
2 votes
1 answer
3k views

Magento 2: How can get value input with knockout Js?

<input type="hidden" name="test" value="test"/> i want using ko get value of input. my component define([ 'Magento_Ui/js/form/form', 'jquery', 'jquery/ui' ], function(Component) { ...
NewBie's user avatar
  • 365
0 votes
1 answer
2k views

Add onclick function to input

I want to add a js function to an input field located in a phtml page on my magento 2 I have write my function like below: <script> function qtyzn() { ..... }...
Toranto mina's user avatar
1 vote
2 answers
2k views

Magento 2 : How add validation validator to custom input field in checkout page?

We have to add custom form in check-money order payment method.We have to add custom validations before order placement but its not working. please check below code 1)Create the validator:- ...
Devidas's user avatar
  • 3,358
1 vote
0 answers
338 views

Magento 1.9 - Custom Input Checkbox Types in Custom Options

I wanted to add custom Input Checkbox Type in product custom option and I have followed bellow link in order to add the type. This is working fine as default value (always associated/added to the ...
Mr. Nanhe's user avatar
  • 139
0 votes
2 answers
2k views

jQuery multiple input types in one form

I got multiple input types in my form based on positions. <input type="file" name="file" id="file" data-positionid="<?php echo $positionId; ?>" class="inputfile" /> Now i want on change ...
Johan SB's user avatar
0 votes
0 answers
172 views

Inputs not clickable only in Firefox

When customers browse the website form other browsers everything works as it should but in Firefox all the inputs like search box, selects on configurable products, checkout form are not clickable but ...
LogicHub Development's user avatar
1 vote
1 answer
2k views

How to use jQuery function on onKeyPress input event? (Magento 2)

I have this field (postcode or zipcode) <input class="input-text col s12 zipcode" type="text" data-bind=" value: value, valueUpdate: 'keyup', hasFocus: focused, attr: { name: inputName, ...
Plim's user avatar
  • 133
1 vote
0 answers
1k views

How add mask to input with knockout javascript?

I need to add a mask to postcode input (ex: 99.999-99), so I have Vendor/Theme/Magento_Checkout/web/template/form/element/zipcode.html with: <input class="input-text col s12 zipcode" type="text" ...
Plim's user avatar
  • 133
2 votes
1 answer
3k views

How to add a input mask on any checkout field?

I've been searching for a way to adds masks in some checkout input fields, I found this, but without answers, I want to add pt_BR mask on the telephone field. Is there some way to use Jquery Mask ...
lpFranz's user avatar
  • 689
2 votes
3 answers
2k views

How to remove the prefix field from the checkout in 2.2

How do I remove this prefix field from the checkout in Magento 2.2? When Googling this it appears there used to be an admin setting that has since been moved/removed: Update - I don't have the Show ...
Ben Crook's user avatar
  • 15.7k
1 vote
0 answers
503 views

Script in html does not work

I tried to add some javascript in details.html in vendor/magento/module-checkout/view/frontend/web/template/billing-address like in code below. details.html : <div class="billing-address-details" ...
Edwin Widhiyanto's user avatar
2 votes
1 answer
536 views

Set input value with billing address prefix in html file

In html file, i could show the billing address prefix with text: currentBillingAddress().prefix. But when i tried to give data-bind to input, it become <input type="hidden" id="test2" data-bind="...
Edwin Widhiyanto's user avatar
1 vote
1 answer
1k views

Magento 2: Validate error from review form on product page does not translate

The message 'Please select one of each of the ratings above.' is not translating, when you try to add a review without choosing the stars. The form is located in the file form.phtml vendor/magento/...
Raluca Albu's user avatar
1 vote
2 answers
5k views

Magento 2 : Add extra text field in checkout billing address and save it in order

I want to add one extra text field in checkout billing form and also save that field data in order so I can show that field data in admin order view and also in order email. I already tried to add in ...
Sneha Panchal's user avatar
0 votes
1 answer
198 views

How to add custom option "input-box" for particular attribute set in Magento1.9?

Am having one category called Cakes in my website. I have added custom option for each one product separately, but I want add that custom option for all commonly for all cake products in simple and ...
Gowri Shankar's user avatar
0 votes
1 answer
53 views

An input appears when selecting an option

I'm trying to create a form that brings the order number to the client select "Yes" or "no" this is my code Contato.phtml ... <li> <label for="f_f_compra" class="...
Gustavo Souza's user avatar
4 votes
1 answer
5k views

Create customer custom attribute with input type checkbox, multiselect, and radio Magento 2

I successfully created custom attribute for customer with input type select/dropdown like this: $code = 'test'; $customerSetup = $this->customerSetupFactory->create(); $customerSetup->...
Idham Choudry's user avatar
0 votes
1 answer
277 views

Magento 1.9 Pass value from html input field to email template in admin [duplicate]

I have made a custom module to add some html input fields in Admin Order view. What I want to do is when clicking on the Send Email button in Order View, the information typed in the html input fields ...
Magento Learner's user avatar
2 votes
1 answer
778 views

Magento 2 display custom input radio in checkout page and save into sales_order table

I am trying to display with custom input radio button in checkout page as like below image and trying to save in Sales_order table. Here I am able to display the input radio button in checkout page ...
Ramesh's user avatar
  • 986
0 votes
1 answer
1k views

Magento 2: Update specific input field class via Knockout

I would like to update / add a class to a specific text input field via Knockout (as opposed to just using JQuery). For example, I'd like to add another class to the input below. And, more ...
Mitch7663's user avatar
  • 171
2 votes
1 answer
666 views

Magento 2 : Error 'The Option Type to Get Group Instance is Incorrect'

I have created a custom input type for customizable options. Despite it rendering a fairly complex UI element for the user to interact with, all it actually submits when you click "add to cart" is a ...
Geat's user avatar
  • 854
2 votes
0 answers
287 views

Magento 2: Pre-populate some name and address fields using KnockoutJS

I would like to update the content of the firstname and surname fields on the checkout. The UI input fields already have the value data-bind (see below) which I'd like to target in my js/view file and ...
Mitch7663's user avatar
  • 171
1 vote
2 answers
1k views

Edit Form not showing the values in input fields

I have a form that saved the value in DB and then i have retrieve that values in an admin Grid Now on Grid view i have Edit button that suppose to be take the user to edit form and after some changes ...
Xabby's user avatar
  • 529
5 votes
4 answers
5k views

How do I create date input field with calendar in Magneto2? [SOLVED]

I want to create a date input field with calendar control where I can change year and month by drop down.
Manish's user avatar
  • 3,116
1 vote
2 answers
1k views

How can I change the color of search box input icon?

It's defined like this "@icon-search: '\e615';". I just want to change into green.
codeIT's user avatar
  • 85
1 vote
3 answers
9k views

Input value must contain number higher than 5

In my contactform I want to display a inputfield, that may only contain a number, higher than 5. How can I achieve that? My current code is: <li> <div class="field"> ...
JGeer's user avatar
  • 1,418
0 votes
1 answer
115 views

How to add a pop up as input type for bundle items selection? [closed]

I want to display options for bundle items on a pop up, along with the link of the product details page of the products that are being displayed as options. So as soon as the user clicks on a button, ...
sk1's user avatar
  • 13
2 votes
1 answer
5k views

Magento 2: Set default select drop down option [closed]

Is there a way to set the default option for a select drop down on the frontend product page? At the moment 'Please select...' is the default option. <select name="options[22]" id="select_22" ...
MikeMason's user avatar
  • 1,357
0 votes
1 answer
75 views

Magento if product option selected then open text field

i want to create a product (shirt) which can be tailored. The customer would click the option to tailor, adding cost of tailoring to price and a text field would open letting the customer enter their ...
learning it's user avatar