Questions tagged [inputcheckboxes]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-2 votes
1 answer
40 views

I want a pageblocksection to be visible only when the checkebox is clicked

Here is my code. This is supposed to display column1 when checkbox1 is clicked, and so on. I can't seem to figure out what's wrong. <apex:page standardController="Account"> <apex:...
Devgal's user avatar
  • 1
0 votes
0 answers
26 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" > &...
Erick Jefferson Valdez Vargas's user avatar
0 votes
1 answer
38 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('...
molinet's user avatar
  • 877
1 vote
0 answers
29 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 ...
Akun Premium1009's user avatar
0 votes
1 answer
404 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 ...
Nick's user avatar
  • 6,934
0 votes
0 answers
269 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?
lipton98's user avatar
0 votes
1 answer
567 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 ...
arnaud's user avatar
  • 104
1 vote
1 answer
1k 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&...
Sharat's user avatar
  • 1,029
0 votes
1 answer
2k 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 ...
Abhishek56's user avatar
0 votes
1 answer
1k 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 ...
FWSFDC's user avatar
  • 75
1 vote
1 answer
2k 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 ...
thinker's user avatar
  • 1,402
0 votes
1 answer
138 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 ...
Sam's user avatar
  • 21
0 votes
1 answer
223 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 ...
Bhuvnisha's user avatar
1 vote
1 answer
534 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), ...
Michele Kleinhomer's user avatar
0 votes
1 answer
404 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 ...
Michele Kleinhomer's user avatar
0 votes
1 answer
138 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 ...
Alexander Atkinsoon's user avatar
-1 votes
1 answer
154 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 ...
Sai raj's 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 ...
Olivia's user avatar
  • 3,431
3 votes
1 answer
599 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()....
mmm321321's user avatar
  • 639
0 votes
1 answer
658 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....
Thomas's user avatar
  • 2,294
0 votes
0 answers
1k 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 ...
devforce's user avatar
  • 1,543
0 votes
0 answers
236 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 ...
Aequitas's user avatar
  • 358
0 votes
1 answer
4k 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 ...
Rimii's user avatar
  • 37
1 vote
0 answers
348 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[] ...
Merry Stambaugh's user avatar
1 vote
1 answer
6k 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}" />
praveen b's user avatar
0 votes
1 answer
5k 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 ...
AndeeWork's user avatar
0 votes
1 answer
6k 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 ...
user47646's user avatar
1 vote
1 answer
944 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 ...
Jenssen's user avatar
  • 419
0 votes
1 answer
827 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="...
Lak_Naren's user avatar
0 votes
1 answer
652 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 ...
Ben d'Straw's 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 ...
J.W.'s user avatar
  • 21
0 votes
1 answer
462 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.
Sayanton Sadhu's user avatar
2 votes
1 answer
720 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 ...
Logan's user avatar
  • 330
3 votes
4 answers
43k 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="...
Ant12345's user avatar
  • 543
0 votes
4 answers
32k 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?
Ant12345's user avatar
  • 543
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 = "[email protected]" SET @Exposed = Lookup("MasterSubscriberDE","Pref_Exposed","...
0xsegfault's user avatar
  • 6,563
0 votes
1 answer
3k 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-...
Renato Oliveira's user avatar
0 votes
1 answer
138 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> ...
cloudZigZag's user avatar
  • 1,366
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 ...
cloudZigZag's user avatar
  • 1,366
0 votes
1 answer
384 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 ...
subramanya_C's 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 ...
NSjonas's user avatar
  • 10k
3 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 ...
Simonp's user avatar
  • 1,892
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 ...
user2739229's user avatar
1 vote
2 answers
3k 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 ...
Priyalakshmi's 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:...
Christopher Alun Lewis's 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 "...
Aerin C's 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 ...
vishal's 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 ...
crmprogdev's user avatar
  • 40.9k
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:...
Rimii's user avatar
  • 371
3 votes
0 answers
2k views

apex:repeat - select all check boxes

I have used <apex:repeat> tag to display records in table using paging. In which I have used <apex:selectCheckboxes> to select the checkbox for that particular record . What should I do to ...
DOMINIC EDWARD's user avatar