7

This is primarily due to network latency. When using apex:actionSupport, an ajax call is initiated to the server. These calls are non-blocking, meaning you can initiate several, completely independant calls at a time. The latency comes into play when they don't necessarily return in the same order they were submitted. The best way to take care of this is ...


7

A good way to do that is to skip the method and use the basic visualforce setters. <apex:inputCheckbox value="{!myCheckboxValues[0]}"> <apex:actionSupport event="onchange" reRender="otherPartOfMyCode"> </apex:inputCheckbox>


6

I found the answer! I wrote a class in css called .myCheckbox: .THIS .myCheckbox{ display: inline-block; float: left; } and added the class to the inputCheckbox: <ui:inputCheckbox class="myCheckbox" aura:id="checkboxLeads" label="Leads" change="{!c.doInit}" value="True"/>


6

You can use a Validation Rule. Check: If checkboxfield is checked If the picklist value is blank You can have a custom error "Picklist required if checkbox is selected" to show up on the screen using the formula below AND ( checkbox_field, ISBLANK(TEXT(picklist_field)) ) If you want to further drill down and check if the picklist = "specific ...


5

Answer from support for Case #14025277 R&D has confirmed that this is a documentation issue. The documentation will be updated to clarify this behavior (please see below). "The expression accessing a Boolean type field on an sObject with simple dot notation is evaluated to true only if the field value is non-null and true. Otherwise it is ...


5

You might want to use onchange event handler on your component to track changes in your lighting:input components vs using onclick, why? Because onclick will invoke your method regardles if the checkbox's value actually changes, for example, selecting the label will trigger the event. However, if you use onchange, it will only trigger the event if you ...


4

Your "facet" is overriding the "columnHeader" property. You can either have the text or the checkbox, but not both, if you code it like that. If you want text and checkbox then put the text inside the "facet" tag.


4

The problem is reported in the console: Uncaught TypeError: checked is not a function It seems to be a name conflict but I can't see where. Changing the function name to e.g. isChecked works around the problem. PS The fix that relates to the root cause is this: <apex:inputcheckbox onclick="window.checked()"/> that references the global ...


4

The first thing you should always do when you face a Javascript error is open up the console. Here's how to do it on: Chrome Firefox Opera Safari IE If you had done so, you would have seen the following error when you click the checkbox: Uncaught TypeError: checked is not a function There are a few ways to deal with this. My preference is to use ...


4

Sometimes you have to change the SLDS example to work correctly with Visualforce. Visualforce depends on the input field having a specific "id" attribute, so the id of the checkbox is actually something like "j_id0:j_id2:divsup". This means the <label> element used by SLDS doesn't match your checkbox. You have to use <apex:outputLabel> so Visualforce ...


4

Checkbox columns are now supported out-of-the-box in lightning:datatable and doesn't require custom Javascripting. boolean: Displays the icon utility:check if the value is true, and a blank value otherwise. Example component.set('v.columns', [ {label:"Invoice Number", fieldName:"Name",type:"text"}, {label:"Date", fieldName:"Date__c",type:"...


4

You can't modify the behavior of the select row column. Recommended Action Specify an action button in the upper-right area (where "Close" is in your images) with a button to link/unlink, and use the selection column to allow the user to select which rows are affected by the action. This is the preferred, default mode to Lightning, and will prevent a ...


4

In Spring '18, checking the box results in a single event: aura:valueChange { "expression": "v.booleanTest", "value": true, "oldValue": false } In Summer '18, checking the box results in two events: aura:valueChange { "expression": "v.booleanTest", "value": true, "oldValue": "" } aura:valueChange { "expression": "v.booleanTest",...


3

I believe you may just have the name of the event wrong. On the checkboxes, the event being sent is called change like this: component.cmp <ui:inputCheckbox aura:id="checkbox" label="Select?" change="{!c.onCheck}"/> controller.js ({ onCheck: function(cmp, evt) { var checkCmp = cmp.find("checkbox"); resultCmp = cmp.find("...


3

I'd suggest displaying the values manually or with the output() to debug: %%[ SET @variable = RequestParameter("checkbox") output(concat("<br>variable: ", @variable)) IF @variable == null THEN SET @boolean = "False" ELSEIF @variable != null THEN SET @boolean = "True" ENDIF output(concat("<br>boolean: ", @boolean)) ]%% <br&...


3

Below you can see a simple example that doesn't require the use of custom controller or controller extensions, so you can keep using just your standardController as you already are. You should be able to implement a similar logic for your page. <apex:page standardController="Account" > <apex:form > <apex:pageBlock title="New ...


3

I gather that at some point you are pushing an articles array to the view. Before you do that, you could add a boolean checked attribute to each object in the array. Here I am using Array.prototype.forEach: articles.forEach(function(element){ element.checked = false; }); component.set('v.articles', articles); Now in your markup you can bind to the checkbox ...


3

If I understand correctly, you want to get last selected value of array of all selected checkboxes var selectedValues = cmp.find("mygroup").get("v.value"); if(selectedValues.length != 0){ var lastSelectedValue = selectedValues[selectedValues.length - 1]; // desired result }


3

For the "ui:inputCheckbox" I would recommend you fetch the value using event.getSource(). Although the documentation seems to indicate you can use component.get('v.value'), however, the documented method seems to return 'undefined', therefore, you might want to check Event Handling in Base Lightning Components So, in your function you will want to do: var ...


3

You can use the iconName cell attribute to display icons in your datatable (see the "Appending an Icon to Column Data" section in the documentation). This can either be a static value, e.g. utility:user if you want the same icon to be displayed in all rows. But (and this is what you'd need in your case) it can also take a field name which holds the name of ...


3

Just query for it. List<CustomField> fields = [ SELECT DeveloperName, LastModifiedBy.Name, LastModifiedDate FROM CustomField WHERE ... ];


3

Wrap your apex merge variables in quotes. They're directly printed into the javascript, which can be useful, but needs to be handled a certain way. if("{!Delegate__c.VC_Profile_ID__c}" == "") { ... } result: if("001U000000ASKk1" == "") { ... } Instead of: if(001U000000ASKk1 == "") { ... }


3

Indeterminate is not a content attribute, as per the documentation, it cannot be used in the component's markup In addition to the checked and unchecked states, there is a third state a checkbox can be in: indeterminate. This is a state in which it's impossible to say whether the item is toggled on or off. This is set using the HTMLInputElement ...


2

You can do it in the below way : j$(".mc").change(function(e){ var r = confirm("Are you sure you want to edit these activities?"); $(this).parent('.cc_row').find('.chkSel').prop('checked',true); }); With a new edit suggested from @irene j$(this).closest('tr').find('td[id$="sel"] input[id$="selchk"]').prop('checked', true); Hope ...


2

clearly you are getting this error because that Lead__r does not exist in your system. I implemented the same in my dev org. Instead writing field in formula you just select field it from INSET FIELD button and rest will work like a charm. See the below image, i created lookup in custom object Distributor n formula field also in distributor as you are doing.


2

Setup > Build > Workflow & Approvals > Workflow Rules; New Rule; Object > Case > Next; Name, created, and every time it's edited, formula evaluates to true, Submit_To_Client__c; Save and next; Add workflow action > New field update; Name, Unique name, Field to Update > Status, A specific value, Submit to Client, Save; Done; Activate


2

Yes, you can write a trigger to set this field. Note from the documentation on CaseComment that the field you are looking to update has an API Name of IsPublished. Note also from the Apex Developer Guide on Triggers: There are two types of triggers: Before triggers are used to update or validate record values before they’re saved to the database. ...


2

Wrap actionSupport inside apex:inputField or apex:inputcheckbox Secondly, you should rerender the panel or pageBlockItem which is not getting rendered by some other conditions. Check this sample code closely. Added an apex:outputPanel on top of apex:pageBlockSectionItem and apex:outputPanel has been rerendered from actionSupport. Updated Code: <apex:...


2

Is this a standard relationship? I am assuming that no. If not, you should use __r: Name = Account__r.minInvoiceNumber__c


2

As mentioned in this post Using Ampscript to pre-fill form, check box ampscript is not working inside checkbox element when building the landing page with the "new" content builder interface via cloud pages. The same code works when you build the Cloud page using Classic Editor--Code View option. But if you still like to use the Content builder interface ...


Only top voted, non community-wiki answers of a minimum length are eligible