Questions tagged [checkbox]

Checkboxes are clickable and actionable component in VisualForce

Filter by
Sorted by
Tagged with
-1 votes
1 answer
38 views

Require one of two checkboxes = True, based on Record Type

Require one of two checkboxes = True, based on Record Type We have two checkboxes "Serviced" or "Not Serviced", in which one will be require to be 'true' in order to save AND Only ...
  • 17
0 votes
1 answer
43 views

Convert check box result to yes, no in email template

I'm trying to use a conditional statement in a salesforce email text template, field is a check box and i want the output in the email template to be yes or no. I'm using the below but it is not ...
  • 1
0 votes
0 answers
61 views

Updating Checkbox Field Based on Formula Field

I have 2 Custom and 1 Standard Object: Subscription_c, Term_c, Account Subscription_c has a lookup relationship with Term_c, called Subterm__c Subscription_c has also a lookup relationship with ...
-1 votes
1 answer
32 views

Number formula that will calculate days of purchase only if the checkbox returns a true value

Hello I've been trying to create a formula that will calculate days since purchase date only when the checkbox approved is checked as true. I've tried the following in a number formula. IF( ...
0 votes
0 answers
45 views

Formula checkbox does not check when user views record

I created a checkbox formula that checks when ownerid=managerid. As an admin, the checkbox formula field works and updates but when I log in as different user (manager profile) the checkbox is ...
  • 19
0 votes
2 answers
161 views

Checkbox formula not working

I am trying to select a checkbox if, "Connected" is in the disposition and the call sentiment field does not have "Gatekeeper". My formula isn't working: IF( AND( CONTAINS(...
-1 votes
1 answer
155 views

validation rule for 2 checkbox

I need Validation Rule for 2 checkboxes. When Checkbox1 = true you can not edit Checkbox2. But I need to have option set True on both checkboxes at one time.
  • 1
-1 votes
1 answer
308 views

Formula field - Trying to show a flag if checkbox = true

I am trying to create a formula to show a red flag if a checkbox field is set to True This is the current formula (IF("Response Timer Failed" = TRUE, IMAGE("/img/samples/color_red.gif&...
  • 79
0 votes
1 answer
59 views

Get status (checked or not) of multiple checkbox per row and their ids

by clicking on Save, I would like to get all checkbox data per row with something like this to insert all data into "rowList" (does not work) [...this.template.querySelectorAll('....
  • 71
0 votes
0 answers
152 views

LWC Filter contacts

I have the following drawback: my parent LWC shows a list of contacts with their related details. But I need to filter these contacts based on an input, typed in by the user. In this case, the channel ...
0 votes
0 answers
35 views

A formula text field to see if candidate has been approved [duplicate]

I have a checkbox field named "Approval" that is checked and not checked when creating a candidate record to see if they have been approved. What I'm trying to do is create a formula text ...
  • 11
0 votes
0 answers
436 views

Flow: If Checkbox on Contact is checked, then allow user to populate information on contact related list Object (Child Object)

very new to Flows. I am trying to come up with a solution for this problem: If Checkbox is checked on Contact object, then and only then user can populate (click new) on the child object, which is ...
  • 11
0 votes
1 answer
373 views

LWC - Check checkbox won't work

Simple question. This won't work - It won't check my checkbox. Any solutions? html. <template> <lightning-input type="checkbox" data-id="none" label="None of the ...
  • 107
0 votes
1 answer
167 views

lightning-input checkbox - getting checked rows when submitted

When submit button is clicked, how do I know which rows have been checked? .html <template for:each={products.data} for:item="product"> <a href=&...
  • 563
1 vote
2 answers
1k views

LWC - Checkbox keeping data with Previous/Next

I'm trying to store these data until I get the other cards back. So when I press the Previous button and comeback to the checkbox that I made, it will move the value by unchecking the box. However, I ...
  • 107
1 vote
1 answer
429 views

lightning-input checkbox margin-right

I have a custom table in LWC and standard margin of <lightning-input type="checkbox" variant="label-hidden" breaks cell center alignment. I ...
  • 346
0 votes
2 answers
839 views

Checkbox field should be visible to all profiles only if it is checked by the system admin can we do that?

I have this checkbox which is visible to everyone right now , I want that field to be visible only when System admin checks the box. Can I do that ? but The other profiles are editing that page then ...
0 votes
1 answer
180 views

How to deselect a checkbox field with a trigger?

can someone help me out? I have a checkbox field and when the user inserts a file this field is 'true' through a trigger, how can I make it 'false' if the user deletes the files? I really appreciate ...
  • 295
0 votes
1 answer
281 views

How to maintain state of selected records after search in Lightning datatable

I'm not able to maintain the checkbox state, when lightning:datatable records change after searching records in the datatable. I have a searchbar above the Lightning datatable and records with ...
  • 13
0 votes
1 answer
479 views

LWC - Checkbox json data response help

So, these are the checkbox that I'm testing. What I have - A function that are associated with uncheck/readonly, and some of my json catch response try. What I need to do - I need to catch the json ...
  • 107
2 votes
1 answer
891 views

LWC - Checkbox read-only, reset

I'm pretty new to this LWC environment and trying to change jQuery to the LWC friendly. So this is about the checkbox where you can select all the options, but when you click on the "None of the ...
  • 107
2 votes
1 answer
168 views

Adding background color in apex:inputCheckbox

I am trying to change the default background color in the checkbox. I can't able to figure out what CSS I should use. I am trying the below code but it is not working. <apex:page standardController=...
0 votes
1 answer
110 views

Cannot add a contact related to account without Direct checkbox

I want to add a contact, related to an account, as the contact of an opportunity, but I can only select the related contacts that have the checkbox “Direct” active. This checkbox I cannot see, edit or ...
0 votes
1 answer
248 views

Web to lead True/False Considerations?

Are there any special considerations when submitting data for a Checkbox field through Web to lead endpoint? When I submit a lead with checkbox value True, it accepts the lead. When I submit a lead ...
  • 149
0 votes
1 answer
34 views

Add custom checkbox to flow edit screen

I am editing flow screen and want to add some components, but i want to add checkbox that will show or remove comonent ( its like show header and show footer). Is there any way to do it?
0 votes
1 answer
99 views

I need to update a checkbox as True if there is at least 1 chatter post on a custom object (sent by sys admin profile.)

I need to track that my team is acknowledging support requests, by posting a chatter post to the requestor. I have a checkbox on our custom object, which I'd like a process builder to flag as True ...
0 votes
1 answer
3k views

Creating a Checkbox Formula Field based on Two other Field Values

What I am trying to do is have the Checkbox value be marked True if 'Email' is blank OR if 'HasOptedOutofEmail' (A Checkbox Field) is marked True (Checked). If Email is populated or Opted Out is not ...
user avatar
0 votes
0 answers
144 views

How do I get the label from a selected checkbox? [duplicate]

It's a lightning web component. event.detail.label doesn't work and event.detail.value only gives me the value. Can someone help please?
0 votes
1 answer
47 views

Select every list elements using field checkbox, not only - on example 50

Does Salesforce make it possible to select every records in table using field checkbox for list? Becouse when we select this checkbox, scroll down and new elements appears, they will be unchecked. Is ...
  • 1
0 votes
1 answer
188 views

How to do trigger for text rich when checkbox is true?

What I'm trying to do is that when a checkbox is true, my rich-text area is required to have image but when I run this code, it still can proceed even no image in that rich-text area. Kindly help me ...
0 votes
1 answer
2k views

Formula Field Checkbox issue

I have created checkbox formula field. Condition is if record's owner profile is not equal to some value it should mark it as true. There are 3 profiles for which we need to check the particular value....
0 votes
2 answers
106 views

Problem using formula

I want to create a formula checkbox that indicates if the Month of Date_Offered__c is equal to the current month. For ex :- If Date_Offered__c = 5 May 2021 Then checkbox will be checked And if ...
1 vote
1 answer
28 views

Dynamic component

I have a configuration in which I dynamically create a checkbox component. The checkbox works. I now want to perform an action when the checkbox changes. I have the following code. My onCheck ...
1 vote
1 answer
893 views

Error when I want to display list of account when checkbox is checked

ShowAcct.cls public with sharing class ShowAcct { @AuraEnabled(Cacheable=true) public static List<Account> getAccountList() { return [SELECT id,name,AnnualRevenue from Account]; ...
0 votes
2 answers
4k views

How to add a radio button in lwc datatable?

I am trying to add a radio button at the end of a datatable row, so basically I need two selection option, one is the checkbox given by default which is shown at the very front of each row, and a ...
0 votes
1 answer
570 views

Checkbox on Opportunity to check and uncheck account of similar field

Let me try this again. NDA Signed is a checkbox that I have on Account and Opportunity. When I check or uncheck this box on either object I need it to update the opposite object. example 1: I have NDA ...
0 votes
1 answer
2k views

Uncheck Checkbox on tab switch in LWC

We have two tabs called X and Y. When we are on Tab Y, we use a checkbox called 'Advanced Filters'.When checked it shows a lightning layout with four inputs.After filling the inputs , if i switch to ...
0 votes
1 answer
687 views

How to display lightning checkboxGroup in 2 column without disturbing other slds form elements?

What CSS would be required to make the items in a lightning:checkboxGroup display horizontally in two or three columns? i have tried this Css .THIS .slds-form-element__control { display: grid !...
  • 3
0 votes
0 answers
363 views

Not able to check the Checkbox on Salesfoce standard page layout

We have custom checkbox field (Is Active) on the standard page layout, check box is not able to check when we click on Check box. If we click on checkbox field label name check box is getting checked. ...
0 votes
1 answer
44 views

Account Setting Checkbox

is there any way to know who and when modifies the "Enable Automated Account Fields" Checkbox in Account Settings? Thanks
0 votes
1 answer
954 views

How to change the colour of <lightning:input type="toggle" >?

I would like to change the standard color of the toggle in lightning input when it is checked or not. How can I perform it? .THIS .slds-checkbox_faux { background-color: #ec54d4 !important; } In ...
0 votes
1 answer
1k views

How to check whether a checkbox is checked or not and show an error if not checked

Hi I have a consent statement and the user needs to check the box before registering. How can I refer the checkbox in the controller class and check the status of the checkbox to show an error message ...
  • 19
0 votes
2 answers
191 views

Update check box in a trigger

I want to update a check box in Opportunity obj.but it is throwing a error that field is read only. Please suggest me how I can update my field. My logic is if account having Lead and lead status not ...
0 votes
1 answer
155 views

Automatically check box false when reach completion date, any solution there?

I have a check- box called "Active" and other fields called "completion date" with a date picker when the completion date is completed or end, automatically the Active check box ...
user avatar
0 votes
1 answer
4k views

Assign a Value to a Checkbox Field in Salesforce LWC When Updating a Record Using Salesforce LWC

How can I be able to set a new checkbox field value to html or js in LWC upon update? I implemented a lightning-record-edit-form that acts as a custom edit page for a custom object. I tried the ...
  • 93
1 vote
1 answer
1k views

How can I add/remove the "checked" attribute via LWC controller data?

Brief context: I have a page with n number of rows using for:each={rows} for:item="row". Each row has its own checkbox. There is a filtering feature that (by rerendering the with a getter) ...
  • 35
0 votes
1 answer
528 views

lightning:input field not passing value?

I've built a form in my lightning component and it seems to be working perfectly, except for a single lightning:select field not passing thru. If I check the box in the form, it doesn't reflect that ...
  • 77
1 vote
0 answers
1k views

Checkbox not persistent while using Lightning Datatable LWC

This is my first LWC components developed and I am using picklist and dynamic search input. Based upon the picklist value, am displaying the records using LWC dataTable. Scenario: If I select the ...
1 vote
1 answer
3k views

Why is <lightning-input-field> not setting value of checkboxes in LWC?

I am getting data in my LWC from a wrapper class. In that data, I get object API name, field API name and value present in the field in the form of Strings. I iterate over the data from the wrapper ...
  • 1,104
0 votes
0 answers
161 views

Validation Rule does not work with Read-Only field

I have two checkbox fields on my Opportunity. I have a Validation Rule AND(checkboxOne__c = FALSE, checkboxTwo__c = FALSE) which will throw an error on save, if none is selected: "Please check at ...