Questions tagged [checkbox]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
3answers
3k views

Disable massaction checkbox checked on grid row click

I want to cancel default behavior on grid row click - checking massaction checkboxes. The another default action - is redirecting to an editing page, and I've disabled it in this way - add this method ...
3
votes
1answer
815 views

Set the checkbox value to checked by default for super product attribute configuration

I would like when we create a new configurable product the checkbox is checked by default But, I've found in the .phtml <input id="__id___label_use_default" type="checkbox" value="1" " checked="...
3
votes
1answer
409 views

Varien_Data_Form - 'checkboxes' only save last value

I made a simple form field with checkboxes $form = new Varien_Data_Form(); $form->setHtmlIdPrefix('option_'); $form->setFieldNameSuffix('option'); ...
3
votes
1answer
52 views

Custom field in the form not saving values in to the Database in magento 2.1

I have created a custom attribute for customer using below code. setup/installData.php $customerSetup->addAttribute(\Magento\Customer\Model\Customer::ENTITY, 'samsung', [ 'type' => '...
3
votes
0answers
55 views

Add a custom required checkbox on the onepage checkout page

I'm struggling to make my custom checkbox a required on the onepage checkout page in the order review step (last step) i have added my code in app/design/frontend/base/default/template/checkout/...
3
votes
1answer
877 views

Magento 2 : remove delete image checkbox from admin edit form

I have add an image upload field in my modules edit form using- $fieldset->addField( 'image', 'image', [ 'name' => 'image', 'label' => __('Image'), 'id' =...
3
votes
0answers
638 views

What is the proper format for checkbox validation in Magento 2?

Using 2.1.5, I have a custom front end form with a set of text elements built (roughly) as: <div class="field my-field required"> <label class="label" for="my-field">My Field:</...
2
votes
1answer
1k views

how to call the observer after checkout and store the orderid in my custom collection?

I want to save the order id and quote id in my custom table(collection).Give me some solution. My observer function is public function placeOrderAfter($event) { try { $order_id =...
2
votes
1answer
334 views

Magento 2 : Is there a way to customize the labels of an admin form toggle?

For admin form UI checkbox components that use the 'toggle' (like Catalog > Product > [product record] > Enabled) - I can see a few references to the UI component configuration using: <field name="...
2
votes
2answers
684 views

Magento 2 Add multiple checkbox in admin ui form Group component

How do I add dinamically add multiple checkbox bellow the a field This is how you add one checkbox bellow a field <fieldset name="field_set_name" sortOrder="100"> <settings> ...
2
votes
2answers
764 views

Magento 2 Show checkbox checked in grid edit mode depending upon value?

I have 2 checkboxes $fieldset->addField( 'call_me_in_morning', 'checkbox', array( 'name' => 'call_me_in_morning', 'label' => __('Call me in ...
2
votes
2answers
148 views

How Can I Bulk Unchecked Categories Check Box for Selected Products

Mistakenly i imported products with irrelevant categories, how can i Bulk unchecked categories check box for selected products by csv or anything.
2
votes
2answers
498 views

How to add custom checkbox with event in customer registration Magento 2?

I'm working on creating a custom checkbox with an event <div class="field tcagreecreateaccount required"> <div class="control"> <input type="checkbox" id="...
2
votes
1answer
32 views

Magento 2.2 HTML; how to change a clickable text into a text with selection boxes?

I was wondering how to change the following: <li class="link"> <a href="https://some-url.com">Some Text</a> </li> In a way that I can have a text with a squared box, so that ...
2
votes
1answer
511 views

Magento 2.1 : Grid duplicate checkbox id_ issue on add new and edit form

<input name="" value="3" id="id_3" class="checkbox admin__control-checkbox" checked="checked" type="checkbox"> I Want to check/unchecked the tags and holidays to attach them to my store as ...
2
votes
0answers
226 views

Terms and Conditions checkbox validation on checkout

On Magento 2.2.3 and I have an issue regarding the terms and conditions validation on checkout. If you have two different payment method, you select one you click place order you will have the error ...
2
votes
0answers
34 views

How to create customer custom attribute for radio buttons in magento 2

I want to create customer custom attributes with following types: 1.radio buttons 2.checkbox Please provide me a solution to create customer custom attribute. If the checkbox contains more than 3 ...
2
votes
0answers
29 views

Amazon Payment agreement checkbox not working

Checkbox for agree not work currently and always show this message. I think does this is javascript or Ajax conflict. Please agree to all the terms and conditions before placing the order.
2
votes
2answers
86 views

How to get a form value in order process?

I have created a new small module to add a checkbox on last step of order process: The value will transfer over payment JSON: In the generated PaymentExtensionInterface I have the getter and setter ...
2
votes
0answers
126 views

Magento 1 checkbox issue in the Payment Methods section from adminhtml

I have a custom checkbox in the payment method: <input class="required-entry" type="checkbox" value="1" name="test" /> I checked the checkbox and I changed the shipping method. After the ...
2
votes
0answers
605 views

Magento 2 - How to add onclick on checkbox in admin grid?

I want to add 'onclick' attribute on checkboxes, added through below code. $this->addColumn( 'customer_entity_id', [ 'header' => __(''), 'index' => 'entity_id', ...
1
vote
5answers
2k views

before submit a form atleast one checkboxes is required

I have shown multiple check boxes,when I submit need atleast one checkbox is required., i tried below code., $fieldset->addField('checkboxes', 'checkboxes', array( 'label' => ...
1
vote
1answer
785 views

Adding Checkbox in system configuration is not working

I want to add single check box in my extension like below. Please check my system.xml <config> <sections> <mymodule> <groups> <...
1
vote
1answer
2k views

Admin grid massaction checkboxes default checked & option set to action I want

Just like the question keep the checkboxes of mass action checked for some items, by default, but I simply want all checkboxes checked by default, plus a default mass-action is selected on first ...
1
vote
3answers
2k views

Magento 2 : By Default Checked Checkbox in Admin Form

I want to make my checkbox defaultly checked in admin form, I add checkbox field using fieldset using below code : foreach ($services as $service) { $servCond = false; if(is_array(...
1
vote
2answers
242 views

Remove checkbox label

Is there a way to remove a checkbox label from above? I looked into documentation, but i didn't find any similar example.
1
vote
1answer
965 views

checkboxes values not saving more then one

OK so i have a custom module setup and it is working great except on my admin form i cannot get the multiple checkboxes to save it always just saves the last one, i did locate other posts about this ...
1
vote
1answer
738 views

magento2 admin grid edit form checkbox not checked

I created magento admin grid form In my form i am using checkbox app/code/[vendername]/[modulename]/Block/Adminhtml/Blog/Edit/Tab/Main.php $fieldset->addField( 'applies_to_books', ...
1
vote
2answers
2k views

Magento2 how to set checkbox value?

I have added a custom checkbox in shipping address section on checkout page, i have used Plugin to observe the checkbox value but it is not returning the checkbox value rather it is simply showing ...
1
vote
0answers
53 views

How to set the value of checkbox in gift_message to the database

I have added a custom checkbox to my magneto cart page for gift message. I want to add value 1 to the gift_message table's "remove_tag" column (which i added) if the checkbox is checked. How can i ...
1
vote
0answers
47 views

Magneto2.3.1 How to customize checkbox with compare link display on product detail page

I am using Magneto2.3.1 and i need to customize the default magento compare link on detail page. I want to show checkbox with compare label and if i checked than product compare successfully and if ...
1
vote
0answers
37 views

Need somehelp get data from checkbox in checkout

I have used Aheadworks_OneStepCheckout and I added some checkbox. However, I can't get the value of the checkbox. My code: /** * Copyright 2019 aheadWorks. All rights reserved. * See LICENSE.txt ...
1
vote
1answer
220 views

Magento 2 - How to add a custom checkbox above place order button in checkout page

I want to add a custom checkbox just above the place order button. The user should be allowed to click the Place Order button only after the checkbox is checked. Thanks in advance!
1
vote
0answers
174 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 ...
1
vote
1answer
78 views

Magento 2 Setting custom customer attributes

I have some custom attributes set in the customer information in the admin. I have a page setup with checkboxes which if checked should set these attributes to yes or no. I'm struggling with setting ...
1
vote
1answer
522 views

Create customer custom attribute checkbox in edit form backend

I added my customer attribute. But I want to display these fields as checkboxes. I created checkbox in the frontend easily but the backend is not. And then save to the database. Please help me. ...
1
vote
0answers
154 views

Show message on specific custom option select Magento 1.9

I would like to show a message when user select any specific custom option in Magento 1.9. I have two checkbox options: 'disposal' and 'installation'. Current Issue At the moment I can only show ...
1
vote
1answer
242 views

Adding a CheckBox to the Frontend Login - Magento 2.1.9

We would like to add a checkbox to the frontend login in order to redirect that login to the admin login in case the checkbox is checked. The redirection would login them in the backend login and ...
1
vote
1answer
53 views

Remove little checkbox from header checkbox when name is missing

So I have a product grid, a non-mass-action one. Because I wanted to have like in the mass-action, those checkboxes as the first columns, the representative for all value data, I added the following ...
1
vote
2answers
657 views

Problem with checkbox uicomponent, has value doesnt 'check'

I'm having a trouble with UIComponent. Being precise it's a checkbox. I'm sure it takes true as a value, but it doesn't appear as a checked one. So it's propably something wrong with my structure. ...
1
vote
0answers
182 views

Getting data from customer attribute checkbox type in Magento 1 issue

I created a customer attribute with Text field as an Input Type . I selected the Show on Frontend on Yes . I went to the register phtml file and I added: <input type="checkbox" name="...
1
vote
0answers
272 views

Magento 2: How to create user defined option for checkbox in bundle product

I am trying to create "user-defined" option for the checkbox in bundle product. Is there any plugin in the market or anyone can help me with coding?
1
vote
1answer
102 views

Custom checkbox field to change the customer group

I have created a custom check box field in billing.phtml(Magento 1.9.2.1), i want to assign customer group based on this field (i,e.. if the field is check the customer will be in one customer group ...
1
vote
1answer
420 views

Magento2: Adding the same custom attribute to all products of a certain Type?

How can I add the same custom option (checkbox) to all products of the same Type? In my case, certain products are of type "Event Ticket Product", due to changes from a 3rd party extension (...
1
vote
0answers
1k views

Magento 2 how to save values of 'checkboxes' type into 'core_config_data' table?

I am currently working on a Magento 2 extension. In my task, I need a field in admin grid to show a list of product's default attributes. My current solution is to use 'multiselect' to generate the UI....
1
vote
1answer
285 views

Checkboxes checkout not showing

We have a clarion OSC but the boxes for create an account, ship to an other address and accept term & condition is not showing. This is the css for it: .tm-hide { opacity: 0;/* filter:alpha(...
1
vote
1answer
1k views

How do we get an URL redirection when we click on checkboxes for every internet browsers?

Here is my issue. I am working on the layered navigation menu. In "filter.phtml", I added checkboxes to "li" tags, so that we can click on them in the frontend to get our research filtered. I tested ...
1
vote
0answers
529 views

Simple Product with checkbox user defined quantity [closed]

So we sell a product in multiple strengths and sizes on our wholesale site. Product A comes in strength 1, 2, and 3. Currently the user has to select the bottle size via drop down then select strength ...
0
votes
1answer
654 views

How to add a checkbox in Account Edit Page to change custom information

How can I add a checkbox in account edit page(version magento 2.1). check box will be like email and chnages password, depends on selection I need to display my custom customer attribute field . Here ...
0
votes
1answer
658 views

How to change anchor links to checkbox in list page?

In default Layered navigation Magento uses anchor links to filter products. I want to add checkbox instead. The code of filter.phtml is this: <ol> <?php foreach ($this->getItems() as $...