Questions tagged [checkbox]

Checkboxes are clickable and actionable component in VisualForce

Filter by
Sorted by
Tagged with
0
votes
1answer
18 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
1answer
42 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
1answer
17 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 !...
0
votes
0answers
27 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
0answers
14 views

How can I conditionally apply an attribute to an HTML element?

I need to implement a basic Checkbox Toggle element in Visualforce: <div class="slds-form-element"> <label class="slds-checkbox_toggle slds-grid"> <span class=&...
0
votes
0answers
44 views

Component not refreshed in table after using refresh apex in lwc

I have table with checkbox which display records. I want to update the comment field for the records which i have selected. It was working and updated in the database. But the component is not ...
0
votes
1answer
33 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
0answers
23 views

Formula Checkbox - Record Created In Business Hours

I have a formula that seems to work 99% however I cannot get the date component to work. AND(HOUR(TIMEVALUE( CreatedDate - (7/24) )) >= 8, HOUR(TIMEVALUE( CreatedDate - (7/24))) <= 17, MOD(...
0
votes
1answer
34 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
1answer
20 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 ...
0
votes
2answers
20 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
1answer
41 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 ...
0
votes
0answers
21 views

How can I force the user to select a second checkbox when another is already selected in a lightning component?

I recently started working with a lightning component. Currently in the component it shows a list of products with a checkbox for each product and I try that when they select the box with the value &...
0
votes
1answer
313 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 ...
1
vote
1answer
106 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) ...
0
votes
1answer
34 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 ...
1
vote
0answers
249 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
1answer
648 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 ...
0
votes
0answers
53 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 ...
0
votes
1answer
42 views

Trying to trigger an Apex class once a check box is marked true on the salesforce front end

I'm trying to call an Apex Class when a checkbox is marked true either on the SalesForce client front end checkbox or when multiple accounts and contacts are uploaded via CSV & DataLoader when the ...
0
votes
1answer
22 views

One checkbox=true per object

Is there a way to set a checkbox as true only for records corresponding with certain conditions. I have the Assignment custom object, and on that I have the "Is Default" checkbox, a role picklist ...
0
votes
1answer
24 views

Record duplication : One Record for a Day

I want to create requirement to create one record for a day. I want to do this through the E-mail field on my custom object. I have checked for "No Duplicate Value" for the email field but want to ...
0
votes
0answers
132 views

How to implement check and uncheck in checkbox using true/false value?

I am getting true/false values from my data and want to implement it as checkbox. Checked for true and unchecked for false. I using the render function to implement it and then setting checkbox value ...
1
vote
2answers
11k 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
2answers
934 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
573 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
508 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 ...
0
votes
1answer
38 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
1answer
84 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.
1
vote
2answers
3k 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
32 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
2k 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
233 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 (...
1
vote
1answer
696 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
268 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
48 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
1answer
963 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
945 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 ...
2
votes
1answer
258 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
1k 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
108 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
4k 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(...
3
votes
2answers
946 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
147 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
98 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
1k 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
4k 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 ...
0
votes
1answer
581 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 ...
1
vote
2answers
130 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/...