Questions tagged [checkbox]

Checkboxes are clickable and actionable component in VisualForce

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

jQuery DataTables Checkboxes in Visualforce Page

I am trying to manipulate multiple row selections using jQuery DataTables checkboxes plugin.But having issues in getting selected rows from page to controller ...getting c.selected = false in ...
0
votes
1answer
50 views

CSS for <lightning-input type=“checkbox” > is not working in LWC

I have the below div inside my LWC html. <div class="container-fluid"> <div class="slds-size_1-of-2"> <lightning-input label="First Name"...
0
votes
1answer
2k views

How to get unchecked row/checkbox value in lightning:datatable

I am using <lightning:datatable onrowselection="{!c.onSelectContact}" /> for displaying contacts and to check and uncheck checkbox fields. Then in the component controller i use event.getParam(...
0
votes
2answers
1k views

How do I change the color of my check mark in a ui:inputcheckbox?

I am trying to set the color of my check mark. This is the code: <div class="slds-form-element__row"> <div class="slds-form-element"> <label class="slds-checkbox"> ...
0
votes
1answer
505 views

Make child rows selected on selecting parent row - lwc tree grid

Is it possible to implement the logic - when parent row is selected all its child rows are selected as well with lightning web component and tree grid? HTML: <lightning-tree-grid key-...
0
votes
1answer
408 views

Display/Hide an Empty Table On Click of Javascript Checkbox Using Jquery and Visualforce

I am trying to search anything about automatic rendering of an empty table row for each selected javascript checkbox using jquery and visualforce. The aim is for every selected row from CustomObj__c,...
0
votes
2answers
224 views

Checkbox in LWC

To make a checkbox in LWC checked by default it has to have the "checked" attribute inside the markup and it is not responding on placing value=true or value= false inside the markup. But is there any ...
0
votes
0answers
8 views

I have a controller for my lightning component which has checkbox fields and i dont know how to write its test class can someone help? [duplicate]

Here is my code for that class on the lead object i need a test class for. public class DisplayProductInterestController { @AuraEnabled public Static Lead getLeadInfo(String leadIdent){ ...
0
votes
2answers
417 views

is it possible when checkbox checked show text field in editable otherwise show readonly

Requirement is I have a check box on Case object ISEsclated and one textfield is reason. when checkbox in not checked it's show readonly form that no one write in the reason text field and if ...
0
votes
2answers
54 views

Multiple IF Statements for Formula Checkbox

I am new to Salesforce, and am still learning about the formula fields...so please bare with me. I am looking to create a formula for a new checkbox called Past Due to perform the following functions:...
0
votes
1answer
41 views

Setting different checkboxes in aura:iteration - Dynamic binding does not work in Lightning

I need to be able to call different checkboxes in an aura:iteration: <aura:attribute name="orders" type="Order[]"/> <aura:handler name="init" value="{!this}" action="{!c.doInit}" /&...
0
votes
1answer
27 views

Visualforce page button stops working when any checkbox item is selected

I have a Visualforce page using custom Apex as an extension. It is relatively simple, living on my "Milestone" object, displaying some related Services in a checkbox list, and my goal is to take ...
0
votes
2answers
2k views

Lightning CheckboxGroup

How to clear the Lightning checkbox group? I tried to clear it using the empty array. But the value gets set to the attribute however, on the UI the checkbox is still checked. Option 1 - ...
0
votes
4answers
2k views

Using AMPscript to see if Checkbox is checked

I'm trying to create a variable that will be true or false based on a checkbox on another page. I'm using RequestParameter to get the information from the checkbox but having some trouble. Here is my ...
0
votes
1answer
116 views

Get index value of checkbox selected

I have a list of items that are being set on the initialization of my component. Then I'm iterating over the list of items and and for each item, I'm creating a checkbox with the description of the ...
1
vote
3answers
8k views

How to display a checkbox field using ligntning:datatable?

I'm trying to display a check box field using lightning:datatable component. Here is the component markup. <aura:component> <aura:attribute name="invoices" type="Invoice__c[]"/> <aura:...
0
votes
0answers
42 views

How to disable default checkbox of data table in lightning component

I have used lightning data table in component. It comes with default checkbox. I need to disable some checkbox under certain condition.How could I do that. Please help me.
0
votes
2answers
385 views

Get array value checkbox

I want get all value of checkbox is checked. I trying but it not working. <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:...
0
votes
1answer
48 views

Formula field to check if the status of account is changed today [closed]

I have a requirement where a check box on account should be true when the status__c field of account is changed today.
0
votes
1answer
24 views

How to Determine if a Contract Has Reached Half of Its Expiration Date?

This is related to my previous post: Create a report that will display all contracts with six months remaining before their expiration dates I've decided to post another one since that only focuses ...
2
votes
1answer
501 views

How to get selected items from a dynamically populated Checkbox Group inside Flow Builder

I have a dynamically populated Checkbox Group element on a Flow Builder screen which has many checkbox items. When a user makes multiple selections - how do I get all these selections? It appears ...
0
votes
1answer
55 views

Changing field type from Checkbox to Formula(Checkbox)

I have read that change in field type would result in data loss. I have a custom field which is of type checkbox and has around 200 records. Now, I need to change this field data type to formula (...
0
votes
0answers
384 views

Single select checkbx in Lightning datatable

I have lightning datatable with below definition Component table definition: <lightning:datatable aura:id="PYearTable" columns="{!v.columns}" data="{!v.data}" ...
1
vote
1answer
210 views

Check box field on Parent object based on child object record type

I am trying to create a checkbox formula field on Account object. This is to be checked based on the record type and isactive field in another object (say Rel__c Object). These two objects have a ...
1
vote
0answers
156 views

Flow, multi select checkbox and email action

Good morning Since I have no coding background, visual flow is a must for me (At least for now) and for some time now I try to understand the tool, its functions and limitations and what better ...
0
votes
1answer
26 views

Basic Checkbox Group handle on change example not working

I am following the basic checkbox group example in salesforce documentation, but ran into a really weird issue in the handle change event handler: JS @track roleCheckboxValues = []; get ...
0
votes
0answers
58 views

How to copy data to text fields when checkbox is checked

I have a little challenge which I'm trying, I want whenever the checkbox is checked I want to copy the values into input text fields in visualforce page. So here I have multiple rows and ...
0
votes
1answer
633 views

Implement three state checkbox using LWC

I am trying to implement a tri-state checkbox using LWC input type=checkbox element and I am trying to set HTML 5 indeterminate attribute https://html.spec.whatwg.org/multipage/input.html#checkbox-...
1
vote
1answer
451 views

How do I change the fill color of the lightning checkbox-toggle? [closed]

The fill color of the https://www.lightningdesignsystem.com/components/checkbox-toggle/ toggle in the off position should not be grey. In UI design, greyed out means the toggle itself is disabled and ...
0
votes
0answers
24 views

Checkbox field is not working in SF1 for ios and Android

I have open loged in in SF1 ios device. I am able to see the checkbox custom field lable, but not able to see the box icox next to the lable. Does anyone know what is the issue?
2
votes
0answers
42 views

Content Overflow with <lightning:checkboxGroup>

I want my lightning:checkboxGroup to overflow into two columns in my fixed width and height box. I believe the best way to do this is to edit the css but I am not sure if this is possible with the ...
0
votes
1answer
505 views

<aura:iteration> and input or <lightning:checkboxGroup>

I have a custom object Topics__c that I want list out like so: The text is the topic name which is a String data type. So I have to add in a checkbox along side the Name field. I have been doing some ...
0
votes
1answer
58 views

Dynamically create checkbox and store value in a record field

I am trying to dynamically create a checkbox component and then store its value in a record's field. I have a standard checkbox component that works. I can't figure out how to dynamically create the ...
0
votes
1answer
430 views

How do I change the background of a checked ui:inputcheckbox?

I am trying to set the background of my checked checkbox. This is the code: <div class="slds-form-element__row"> <div class="slds-form-element"> <label class="slds-...
2
votes
2answers
446 views

Multiple Checkboxes in Formula Field

I'm sorry if the title is completely butchering what I'm looking for, please let me know if should be updated. Here's what I'm struggling with: I have 11 checkboxes on an opp layout. I need the ...
0
votes
1answer
4k views

How to make a picklist field required only if a checkbox field is checked?

I have a checkbox field and a picklist field. If the checkbox is checked than I want the user to have something selected from the picklist. I started creating field dependency where the controlling ...
0
votes
1answer
108 views

Having trouble retrieving a checkbox value with SOAP API in c#

This is the first issue I have ran into retrieving data from Salesforce using the SOAP AP. So I have introduced a custom field which is a checkbox, (lets call it Checked) and I have added it to the ...
0
votes
1answer
27 views

Need Help with a custom Setting

i have a custom setting with a field type "checkbox" set to true but if i try to query it on a class it's allways returning false, i don't know why. Email_Engine__c ee = Email_Engine__c.getInstance();...
1
vote
1answer
27 views

Filter results in a Lookup Filter Field's search results

Custom Contact Field "Active" = Data type Checkbox. "Active" is filterable in Contact Search Layouts. If "Active" which is only a checkbox, & is a filter option in the Case>Contact Name>Lookup, ...
0
votes
2answers
523 views

How to validate checkbox as checked only on specific page layout and without record type?

I wonder how I can accomplish that checkbox field will be reuqired on specific page layout. As I know checkbox fields can't be simply marked as required on page layout level. Is it possible to ...
0
votes
1answer
2k views

Hide checkbox column and color some rows of lightning-datatable [duplicate]

I have data of customers and their numbers. I want to show it in dataTable. Additionally, I am trying to color those rows whose numbers are invalid and also disable the checkbox for that row. I have ...
1
vote
2answers
110 views

Javascript button to set checkbox true if conditions are met

I keep getting 'unexpected token ==' when the button is clicked. I have been through the code and everything looks right to me. Can anyone see why? All field names are correct. {!REQUIRESCRIPT("/soap/...
4
votes
1answer
4k views

lightning checkbox is not working

I have two checkboxes in a lightning component, when we click on the first checkbox it marks true to the other checkbox, it works well only with the UI tags but doesn't work when I convert it to ...
4
votes
3answers
8k views

ui:inputCheckbox how to allign with the checkbox itself

i tried to add a checkbox using ui:inputCheckbox and i wasn't able to align the checkbox with the label this is the code: <ui:inputCheckbox aura:id="leadsCheckBox" label="leads" click="{!c....
0
votes
2answers
290 views

How to fix checkbox in lightning:recordForm?

I have a problem with checkboxes when using lightning:recordForm. My code: <lightning:recordForm objectApiName="Opportunity" recordId="{!v.recordId}" mode="view" ...
1
vote
3answers
21k views

How do I read the value from an input checkbox?

I am not managing to read out the value of a checkbox in my lightning component. Please find my code below: lightning component: < label class="slds-checkbox"> < input type="...
1
vote
1answer
60 views

Field Label change is not reflecting on Contact object

I have a checkbox field on the contact object that should be reading ‘Email Opt Out’. However, this is still what the field looks like on the actual contact page. The Field Name “...
1
vote
1answer
1k views

How to populate a <lightning:CheckboxGroup with a Multi Select Picklist field

How do I populate a <lightning:CheckboxGroup with a multi select picklist field? The <lightning:CheckboxGroup takes a string[] And the mulit select picklist field returns a string apple;...
0
votes
2answers
1k views

CSS required to make lightning:checkboxGroup items display horizontally

What CSS would be required to make the items in a lightning:checkboxGroup display horizontally rather than the default of vertical?
0
votes
1answer
72 views

Show selected row in alert

I have to show the selected row in an alert. Can someone please help me? Below is the page code snippet. <tbody> <apex:repeat value="{!contactList}" var="contact" id="loop"> ...