Questions tagged [inputcheckboxes]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

Can't get the values of the checkbox in my Lightning component when I sent an Object

I have the following code: HTML: <lightning-card title="CHOOSE THE INFORMATION TO SHARE" icon-name=""> <div class="slds-var-m-around_medium" > &...
user avatar
0 votes
0 answers
31 views

My checkbox value is not being mapped to my lightning component

Below is the code from my lightning component. The value of the field is not being mapped. What am I doing wrong? Component: <aura:iteration items="{!v.productInterestItems}" ...
user avatar
0 votes
1 answer
33 views

Can't pass value from JS inside Visualforce Page to Controller

I'm trying to pass a variable from an inputCheckbox from my vfp to my apex controller through js ApexClass: public void updateAllData(){ selected = Apexpages.currentPage().getParameters().get('...
user avatar
  • 781
1 vote
0 answers
28 views

Intermittent Error - inputCheckbox set value in salesforce

I have datatable, if i check the checkbox it will updated the data based on index that i check. but there is intermittent error, sometimes if i check 5 data, only 3,4,or all data will be set in list ...
user avatar
0 votes
1 answer
51 views

Lightning checkbox checked when page loads

Why this event not firing? and I have clear the cache and tried every possible thing. So I'm trying to see if the checked is true/false which the value coming from database. HTML: <lightning-input ...
user avatar
  • 6,692
0 votes
0 answers
45 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?
user avatar
0 votes
1 answer
347 views

Cannot edit checkbox (input field in User site guest)

I have a User site guest which displays fields of an object For example, if it's a checkbox If I do <apex: inputField value = "{! loggedC.Expression_rens_F1__c}" /> The checkbox ...
user avatar
  • 59
1 vote
1 answer
899 views

LWC Wrapper List Update not reflecting in client side JS or Apex

I have an LWC as shown in below diagram. Whenever I update these checkboxes these changes are not being communicated to JS property variable any help would be really appriciated. Html <template&...
user avatar
  • 1,029
0 votes
1 answer
1k views

How do I uncheck the checkbox

I need to uncheck the checkbox on click of a button, but I'm using the checkbox inside the aura:iteration and on using aura:id I'm getting the value as undefined. My Actual Scenario is like there are ...
user avatar
0 votes
1 answer
512 views

Conditionally set checkbox Values on Visualforce page

I am looking to pre-fill/pre-populate a checkbox on my Visualforce page based on a specific picklist condition being met. In this example, I would like the "ClearingHouse__c" checkbox to be ...
user avatar
  • 55
1 vote
1 answer
1k views

Use Checkbox-Group to update multiple records?

I'm trying to figure out flows work with multi-select checkboxes. At this point I can only select 1 id from the list, despite the flow debug logs showing that I have selected 2. I'm aware of the ...
user avatar
  • 1,298
0 votes
1 answer
117 views

Checkbox selection uisng Wrapper is not passed to controller

This might have been posted several times but i'm unable to workaround this issue using apex & I also looked at all the existing questions similar to this. I have a list of Opps with checkboxes in ...
user avatar
  • 11
0 votes
1 answer
138 views

Checkboxes generated using aura:iteration is not clickable

I am trying to generate list of check boxes using the aura:iteration and list of checkboxes are getting displayed. But only the first checkbox is clickable and rest of the checkboxes i am not able to ...
user avatar
1 vote
1 answer
390 views

Hide label on ui:inputCheckbox?

I would like to hide the checkbox label. Is that possible? ui:inputCheckbox", { "value" : component.getReference("v.EventRSVP."+ fieldAPIName), ...
user avatar
0 votes
1 answer
221 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 ...
user avatar
0 votes
1 answer
79 views

Visual Force: Checking boxes individually triggers OnChange, but my CheckAllboxes page component does not

I have a table of items. Each item can be selected or checked with a checkbox, and an OnChange is triggered to pass its ID to Apex for a query that will quote the selected items. This works all fine ...
user avatar
-1 votes
1 answer
122 views

Update Checkbox in Obj A, if its relevant record(from Lookup) got Selected in Obj B

I have Two Custom Objects , Obj A and Obj B, My requirement is i have to update checkbox true in Obj A once its relevant record(Lookup) got selected in Obj B. Please suggest the solution and let me ...
user avatar
0 votes
1 answer
2k views

get value of apex:inputCheckbox in jQuery

I am trying to use a apex:inputCheckbox and pass the value (if it is checked) to a JS function. I have tried everything from onClick, toggling, event listeners, .checked, this question , and pretty ...
user avatar
  • 3,183
3 votes
1 answer
507 views

lightning:checkboxGroup - set checkbox indeterminate = true

I'm using lightning:checkboxGroup and I'm trying to set the state one of the individual checkboxes as indeterminate. I tried the following JS: component.find("my-chbxgroup").getElement()....
user avatar
  • 577
0 votes
1 answer
557 views

Asset checkbox not eveluating to true in testclass

I have a checkbox on asset which should turn true by the following formula: IF( ISPICKVAL( Product2.Bedrijf__c , ""D S" ) && Eind_datum__c >= TODAY() || ISPICKVAL( Product_2__r....
user avatar
  • 2,126
0 votes
0 answers
983 views

Check multiple checkboxes in VF page on condition

Scenario: VF page is having two column:checkbox and fee name. Second column is coming from object 'Fee' which is child of 'App' object. An 'App' record can have multiple fees associated to it.Below ...
user avatar
  • 1,407
0 votes
0 answers
178 views

Stop a checkbox from changing value on click unless value is changed

I have a ui:inputCheckbox: <ui:inputCheckbox value="{!v.bool}" change="{!c.toggle}" /> Even if I remove the change attribute, when I click on the checkbox (note: it's a toggle, not sure if ...
user avatar
  • 438
0 votes
1 answer
3k views

Bind checkbox value with controller boolean variable

I have checkboxes on my vf page <apex:inputCheckbox id="checkboxShowP" value="{!P}" onchange="show(this);"/> In the controller class public boolean P{get;set;} I want to bind this checkbox ...
user avatar
  • 37
1 vote
0 answers
326 views

How do I pass the information from the apex:inputCheckbox to the controller using SLDS?

I have a VF page where you select some states. This is working but wanted to make the checkboxes using SLDS Here is my controller code snippet: public string superawesome; public String[] ...
user avatar
1 vote
1 answer
5k views

how to change color of checkbox in lightning [closed]

I would like change color into green. How to change color because default is blue. I tried this <ui:inputCheckbox change="{!c.Checked}" />
user avatar
0 votes
1 answer
4k views

Setting a ui:inputCheckbox to be checked in javascript

I have a requirement to only allow system administrators to uncheck a checkbox on a custom lightning component. I've included example code below that replicates some of the behaviour but I cannot ...
user avatar
0 votes
1 answer
5k views

How to get the value of the selected checkbox in visualforce page and pass it to controller

I have a requirement where i have to pass the value of the selected check boxes to controller method. i need to send the combination of values, i.e Auditoriums and Carpet to my controller. Can you ...
user avatar
1 vote
1 answer
850 views

inputcheckbox not showing in visualforce page

I have this visualforce page where I show several fields as inputfield and picklist which are working fine. I cannot get the inputcheckbox showing up in my visualforce page am I missing something see ...
user avatar
  • 419
0 votes
1 answer
778 views

How to pass list of email ids to next VF page

VF Page <apex:page standardController="Professional__c" extensions="sendemail" recordSetVar="Plist"> <apex:pageMessages > </apex:pageMessages> <apex:form id="frm" target="...
user avatar
0 votes
1 answer
628 views

How can I locate a ui:inputCheckbox?

hopefully this will be an easy one. I'm iterating through a list to populate a table, and I want to have checkboxes on the table too. I also want to be able to locate the previously chosen checkbox ...
user avatar
0 votes
0 answers
31 views

Weird encounter with a List

I'm at a loss. I'm updating a List via checkbox/actionsupport method and it's saving one variable but not the other. (screenshot). Here's code: public class aAccount { public Account act ...
user avatar
  • 21
0 votes
1 answer
423 views

How to pass record id to another component while click on checkbox in aura iteration

I am facing one issue with navigating to record from another component when user selected checkbox in one component and I will get those selected Id in next component.
user avatar
2 votes
1 answer
669 views

Salesforce Lightning make checkbox checked using jQuery

I am wanting to iterate over two arrays, and I want to set checkboxes to checked whenever items in the array match. I have no problem with the iteration, and I can change the checkbox with the name ...
user avatar
  • 330
2 votes
4 answers
40k 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="...
user avatar
  • 523
0 votes
4 answers
17k views

How do I read out the value of my checkbox?

I can't figure out how to read out the value from a checkbox. See my code below. Is there someone who can give me some tips?
user avatar
  • 523
1 vote
2 answers
1k views

Using Ampscript to pre-fill form, check box

I have a preference center and trying to prefil preference. Here is my code: SET @SubscriberKey = "smithandthunder+1320@gmail.comJohn" SET @Exposed = Lookup("MasterSubscriberDE","Pref_Exposed","...
user avatar
  • 6,459
0 votes
1 answer
2k views

How to style a checkbox in a Visualforce page using Lightning Design System?

Preferably without using JavaScript. This is my code using the SLDS, but the field value doesn't change or get set. <div class="slds-form-element"> <div class="slds-form-...
user avatar
0 votes
1 answer
130 views

checkbox checked but row will not showing in Edit Mode(actionFunction not working)

ActionFuntion not working what i miss can you please tell class code: public class EditContact_controller{ public List<wrapperClass> wrapClassList{get;set;} public List<contact> ...
user avatar
  • 1,298
0 votes
2 answers
2k views

show checkbox before every contact using wrapper class

I'm trying to fetch the contact record and showing on page using its showing error Unknown property EditContact_controller.wrapperClass.conList Which thing is unknown. here is my controller ...
user avatar
  • 1,298
0 votes
1 answer
369 views

Visualforce Checkbox Rerender via Ajax - Whats wrong with my code?

I want to disable the pageblock section when the checkbox is checked,enable it when the check box is unchecked. I had tried with rerender but it is not working as expected. Note:The checkbox is ...
user avatar
1 vote
1 answer
1k views

How to render a checkbox with negated boolean value from model

I'm trying to render a readonly checkbox with a negated boolean value from my model. Salesforce won't let you do this: <apex:inputCheckbox disabled='true' value='{! !model.myBoolean}' /> i ...
user avatar
  • 9,607
2 votes
0 answers
2k views

ui:inputCheckbox and aura:iteration: value binding

I am currently writing a lightning component made of a table of elements that can be selected (or not) using a ui:inputCheckbox. So the way I do is fetching the data from APEX controller during the ...
user avatar
  • 1,872
0 votes
2 answers
1k views

Rerendering a table row for each selected javascript checkbox

I am trying to display an empty table row (for Object2__c) each time I select a row (for Object1__c) using a javascript checkbox. There's no error but nothing happens every time I tick a checkbox ...
user avatar
  • 335
0 votes
2 answers
7k views

Hide/Show Button On VisualForce Page

I am trying to show/hide a submit button on my VF page based on a checkbox but its not rendering. Here's what I have already tried: On the controller I have defined the boolean condition as shown ...
user avatar
  • 49
1 vote
2 answers
2k views

How to disable checkboxes when when more than 6 checkboxes are selected?

Once the user selects 6 checkboxes I want all the other checkboxes to be disabled.How to do it?I tried adding a boolean variable for disabled attribute,It accepts exact 6.But it also disables all the ...
user avatar
  • 1,456
6 votes
1 answer
8k views

apex:inputcheckbox "selected" attribute not working inside repeat tag

The "selected" attribute can be used to define if a checkbox should be checked by default when it is displayed on a Visualforce Page. This works correctly when defined in a simple single apex:...
user avatar
3 votes
2 answers
3k views

Visualforce: Checkbox is not firing function onclick

I've tried everything I can think of to get this checkbox to work. This code is just supposed to trigger a function when a checkbox is checked. It currently does not trigger the alert, it only "...
user avatar
  • 159
1 vote
3 answers
2k views

toggle inputCheckbox in Component

My requirement is to check/uncheck a inputcheckbox as and when i press a button. it works fine for the first time. however, after that no matter how many times i click the button, the checkbox doesnt ...
user avatar
  • 151
2 votes
1 answer
1k views

inputcheckbox behavior with select option actionfunctions clarification

After looking at a LOT of posts, I've concluded that I'm confused on exactly how input checkboxes behave. I've created a custom wrapper class around a select option that looks like list<string ...
user avatar
  • 40.5k
1 vote
3 answers
1k views

To render a button based on a apex:inputcheckbox field

I have the following piece of code within a javascript popup <apex:column headerValue="Select"> <apex:inputcheckbox value="{!auth.IsSelected__c}" id="selectrecord"/> </apex:...
user avatar
  • 371