Questions tagged [checkbox]

Checkboxes are clickable and actionable component in VisualForce

Filter by
Sorted by
Tagged with
1
vote
1answer
3k views

Styling lightning:outputField checkbox

I am using lightning:recordViewForm to display case data; And inside the lightning:recordViewForm, i use lightning:outputField to display fields data, like this: <lightning:recordViewForm ...
0
votes
2answers
347 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:...
1
vote
1answer
344 views

lightning checkboxgroup get last value

I want get last value in checkboxgroup. I try using cmp.find("mygroup").get("v.value") but it get all value.
1
vote
1answer
734 views

Input type Checkbox attribute Checked is not set on load in ampscript

I have a checkbox in the page. It should be checked if the original value is True. I'm trying to implement ampscript for this, but it fails. Even it doeesn't show in the Preview. I debugged, the ...
0
votes
1answer
314 views

Checkbox formula comparing fields on two objects

I want to create a checkbox formula on a child object that checks if a field matches a field on the parent object. The relationship between the two is lookup. I've tried Name = Account....
0
votes
0answers
53 views

Checkbox formula field based on User login status?

Can we have a checkbox that gets checked whenever a user logs-in and uncheck immediately after logout? Use case I am trying to solve: There are 12 Super users who will be accessing/maintaining the ...
0
votes
1answer
298 views

Checkbox Button Group - Checked Option

I am facing problems trying to make a reusable component on React of the CheckBox-Button-Group (https://www.lightningdesignsystem.com/components/checkbox-button-group/). The component is rendering ...
0
votes
1answer
26 views

How do I change the default on opportunity Notes and Attachments to be NOT private?

opportunity notes and attachments are always set to private by default but Users wanted it be made public by default.
0
votes
1answer
672 views

Rerender on inputfield checkbox

I want to display some fields if user checks the checkbox. I am trying using actionsupport but it does not see to work. Please provide some help on how to do that. <apex:pageBlockSection id="...
0
votes
1answer
295 views

Get checkbox value in multi select picklist

I have a few checkboxes displayed on a page which need to be saved to the server as a multi-select picklist. How do I do this? The checkboxes value is set to true or false. But the picklist has ...
0
votes
2answers
949 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
420 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-...
0
votes
1answer
97 views

Formula field Not working as expected

I have Formula field called "Active" with output type as Checkbox on Contracts object. There is checkbox field on Account object and the field name "Credit Hold". This credit hold field is used to ...
1
vote
3answers
18k 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="...
0
votes
2answers
2k views

disable checkbox and enable checkbox [closed]

I have this checkbox. What I want is that when I click New it would disable the Old checkbox and vice versa. By the way, this is a repeated checkbox, then when I click the Submit Button, it will ...
4
votes
3answers
7k 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
1answer
337 views

Defaulting case comment as “Public” before save

Is there any way we can default the "Public" checkbox in case comments BEFORE saving? I'd really rather not leave it up to our sales reps to remember to check the box... We currently have a workflow ...
0
votes
2answers
303 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
1answer
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-...
0
votes
1answer
586 views

Disabled checkbox to be true on selecting a record

I'm having a requirement to highlight the apex:column in apex:pageblocktable when a particular record is selected. So I kept a checkbox which is disabled and when I select a record, the disabled ...
0
votes
1answer
83 views

custom lookup with checkbox values in visualforce

I want to create a inputtext field with a lookup icon next to it and when i click the lookup image, it has to display all the values with checkbox and when i select a checkbox or more, the text field ...
0
votes
1answer
25 views

Map two checkboxes to a picklist? [closed]

Anyway I could transfer two existing checkboxes to a picklist? There's a few thousand entries that would need to do it manually. As far as I could see I can't edit two seperate checkboxes to one ...
2
votes
1answer
152 views

How do I create a validation rule on a QTY field if more than 2 and then a Box must be checked?

I have a quantity field "Product Qty" When Product is Greater than 2, a checkbox "Conditional PO" must be checked. Below validation rule isn't working. Can you help? AND( VALUE(TEXT(Product_Qty__c))...
0
votes
1answer
378 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,...
1
vote
1answer
63 views

How can I make a multiselectpicklist disabled, based on checkbox?

when All Employee checkbox ticked, the field cant be selected (disabled) any solution? VisualForce Page <apex:page controller="preProcessController"> <apex:form > <apex:pageBlock ...
1
vote
1answer
1k views

Visualforce form, hide or show checkbox depending on the picklist

I created a form and I want to show the checkbox option depending on the value in the picklist. Let's say if the user chooses "Apples" in the picklist, the checkbox shows, if he choooses "Oranges" the ...
0
votes
1answer
29 views

Checkbox should be filled automatically when comparing two objects

we have the object Preinscripción containing records about which Postgraduate course someone applied for and paid. It contains the Name of the Applicant, the Postgraduate Course, the Identification ...
0
votes
1answer
24 views

Custom field implementation for picklists with multiple fields

I have 10 category names with 10+ items from each that a user can potentially pick (can select more than one) Instead of creating 10 custom picklists is there a way of selecting the category name ...
0
votes
1answer
61 views

Filling custom field with Queueable Class

I'm new to Apex Developing and I'm facing pretty strange issue with my code. I've recently write queueable class to check custom checkbox on Case Alert_view__c. The idea is that checkbox will be set ...
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 ...
5
votes
2answers
299 views

Controller object not updating fast enough

I have a list of booleans, and some checkboxes. When a checkbox is clicked, a corresponding index in the boolean list is changed to true/false. My issue is that if the checkboxes are clicked too fast, ...
3
votes
2answers
2k 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 "...
0
votes
2answers
7k views

Get the values of checkboxes (in a lightning component)

I have a data table in my lightning component, and for each element of this table I have a checkbox. I'd like that when I make my selection of few element in the table, when I click on a button to ...
0
votes
1answer
339 views

Validation rule to change status field on case when checkbox is selected

I need I validation rule to change the status picklist on case object to value "Submit to Client" when checkbox with the same "Submit to Client" is ticked. Could you please advise how this can be ...
11
votes
2answers
2k views

Handling nulls on checkbox fields in Apex

I have a custom object with a couple of checkbox fields. Those fields have a Default Value of "Unchecked". How should those fields behave when assigned a null value in Apex? Simplified example code: ...
1
vote
1answer
534 views

Rerender picklist values based on checkbox

On my page I have a picklist that contains the names of all active users for the org. I'd like to add a checkbox that, when checked, repopulates the picklist with inactive users instead. How can I ...
0
votes
2answers
1k views

Change Picklist value when checkbox is checked in visualforce

I have one picklist field that contains hot, warm, cold. And I have one checkbox field. If I choose Hot value in picklist field and checked the checkbox then picklist value should changed to cold. &...
1
vote
1answer
266 views

Error to copy one value from a checkbox to another checkbox

I have a field OBS approved(checkbox) on lead object. I want to carry this value on another field on a custom object. I have created a formulae field on the custom object return type as checkbox. I ...
1
vote
1answer
213 views

issue in getting the value of CheckBox value in apex from visualforce

I have a Boolean value in my controller. public Boolean withoutDocument {get;set;} I have referred them in the visual force page like this. <input type ="radio" value="{!withoutDocument}"/>...
0
votes
1answer
166 views

how to align check boxes in between radio buttons

here i am trying to put my checkboxes in between radio buttons, and i also wants to disable those checkboxes if radio button is not clicked. here how i want-- Vf code-- <table ...
0
votes
1answer
57 views

In Trigger custom Checkbox is not working properly

Once the new user is created in Salesforce I want to send welcome email to the user automatically. for the above process, i have created custom check box"Welcome_Mail__c" in user detail page. If i ...
1
vote
1answer
545 views

How do I set a checkbox on a Visualforce form from an inline edit change?

My Visualforce page has a table displaying details from a controller list. The table has Inline Edit options which work on a Save button. I would like to check a checkbox for the row changed whenever ...
0
votes
1answer
2k views

GET Check Box value in apex

I have checkbox for each row.. I want to pass the multiple checkbox value from VF page to controller.. Can you please help me out.. I am new to salesforce. I am not sure how to do that.. SOmeone ...
1
vote
2answers
570 views

Column header not displaying when using facet. Any suggestions please

I am having a check box to select/deselect the accounts. I have the used the following script. But did not get the column header which is "Subscribe (Yes/No)". Any thoughts please. Thanks. <apex:...
3
votes
2answers
4k views

How do I make the checkbox checked when loading data from .csv file [closed]

I am trying to populate a check box in a custom object with "checked" (True/1) using Apex Data Loader v 32.0.0 in command line mode. I have tried all values documented => True, TRUE, YES, Y & 1 ...
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 ...