Salesforce Cookies #12

How to remove the arrows from lightning:input[type="number"]? I think this is a generic question and Salesforce devs have looked for the ways to get rid of the spin buttons on the input field without changing it to text type for a purely numeric┬ábehaviour. You just need a few lines of CSS to solve your problem. … Continue reading Salesforce Cookies #12

How to recreate modal component for force:lightningQuickActionWithoutHeader

If you are building a lightning component for a lightning-quick action then you must be having a hard time to add additional buttons to the footer. If you are implementing the force:lightningQuickActionWithoutHeader interface in the component then you can get rid of the default header and footer and can create your own footer with the … Continue reading How to recreate modal component for force:lightningQuickActionWithoutHeader

Salesforce Cookies #11 ( Salesforce Admin Special )

Is there a way to mass-check Checkboxes when updating a Profile's Object's Field-Level Security? Of course, there is. You can do it through your browser's console. You just need the following Javascript code snippet which will do the job for you. For the Edit Permission var checkboxes = document.querySelectorAll(".displayedCol input"); for (var i = 0; … Continue reading Salesforce Cookies #11 ( Salesforce Admin Special )

Salesforce Cookies #10

Creating a dynamic SOQL which includes all the fields I have seen this question several times on developer forums and I thought it could be another addition to Salesforce cookies. If you are wondering how can you query all the fields of an object then you can use the following code snippet. This is quite … Continue reading Salesforce Cookies #10

Salesforce Cookies #9

Populating merge fields in Salesforce Email Template without sending the email / Preview Email Template Recently, I faced a challenge while working on a small project in which I had to send email through apex using email templates. I am calling it a challenge because of the problem I faced and I am sharing the … Continue reading Salesforce Cookies #9

Salesforce Cookies #7

Calling a child lightning component method from the parent lightning component When we have multiple nested components then we may run into a scenario in which our parent lightning component is supposed to call a method of its child component. This is a very common use case. simplifies the code needed for a parent component … Continue reading Salesforce Cookies #7