Questions tagged [input]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
97 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) { ...
0
votes
1answer
47 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() { ..... }...
1
vote
0answers
455 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:- ...
0
votes
0answers
169 views

How to add input field in check money order payment method in magento 2?

I want to add custom input field in check money order payment method . when this field is empty and you have to click on place order button then this fields is required.when after fill required field ...
1
vote
0answers
122 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 ...
0
votes
2answers
291 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 ...
0
votes
0answers
47 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 ...
1
vote
1answer
584 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, ...
1
vote
0answers
335 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" ...
1
vote
2answers
490 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 ...
1
vote
0answers
352 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" ...
2
votes
1answer
274 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="...
1
vote
1answer
669 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/...
1
vote
1answer
781 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 ...
0
votes
1answer
155 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 ...
0
votes
1answer
48 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="...
4
votes
1answer
2k 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->...
0
votes
1answer
182 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 ...
1
vote
0answers
256 views

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

I am trying to display custom input radio button in checkout page as like below image and trying save in Sales_order table.Here i am able to display the input radio button in checkout page and i ...
0
votes
1answer
523 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 ...
1
vote
0answers
247 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 ...
2
votes
0answers
168 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 ...
1
vote
2answers
827 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 ...
5
votes
3answers
2k 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.
1
vote
2answers
497 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.
1
vote
3answers
5k 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"> ...
0
votes
1answer
53 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, ...
2
votes
1answer
4k 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" ...
0
votes
1answer
72 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 ...
1
vote
0answers
25 views

Unwanted symbol in entry field with Onepage Checkout

Got another strange problem, whenever the checkout page is called the postcode field is immediately populated with a single '*'. Tried several workarounds including using jQuery to try and strip it ...
4
votes
1answer
589 views

Magento Contact Form: What is the 'hideit' input for?

Looking at the Magento Contact Module (be it magento1 or magento2) there is a hidden field name="hideit". <input type="hidden" name="hideit" id="hideit" value="" /> Here the full snippet from ...