Questions tagged [conditional]

The tag has no usage guidance.

20 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
650 views

How to conditionally render inside a datatable in lightning?

I have a lightning datatable and into one column called 'Set Primary Contact' I want to display an icon if the custom field IsPrimaryContact__c has the value TRUE, or a button 'Set primary contact' if ...
2
votes
0answers
288 views

CPQ quoteline conditional custom action

I am trying to set up a conditional Custom Action on a CPQ Quote Line. I only want the Desegment Line Custom Action to appear when a custom field "Segmentation_Editable__c" has a value of true. I ...
2
votes
0answers
195 views

Visualforce conditional rendering formula not evaluating to True

It seems like my rendered If statement is not evaluating as expected (at least my expectations). Basically, I have 2 Id fields pulled from apex, and if they equal each other, it conditionally displays ...
1
vote
0answers
22 views

Contact duplicate rule condition is not working on Lead convert (Apex)

I have written custom Lead Convert apex class and vf page. I have a duplicate rule "active" on contact. The issue i am facing - When i try to convert a lead, contact duplicate rule's ...
1
vote
1answer
354 views

Component Visibility in Flow's Screen with Number data type

I'm trying to set up a filter to manage a component visibility in a flow's screen component. In particular, I want the field to be available to the user for the insert of data only when a particular ...
1
vote
0answers
8k views

Check if Date field is empty

How can I check if a Date field is empty or blank? I tried this statement: if(project.Current_Launch_Date__c==null) But I don't get the desired result, even if I delete the date value, it still does ...
0
votes
2answers
25 views

AMPscript issue with a conditional (boolean)

how are you? My excersize is to compare 3 clients with a boolean and i would like if my code is okay. Let me show my code. I just checked the ampscript guide but it isnt enough. Looks easy but i'vent ...
0
votes
0answers
64 views

Process Builder - Auto Create Event after a call is logged

What I am trying to do ? When a Call is logged (via Log a Call), Create a follow up event automatically. How did I do this ? I created a workflow via Process Builder to auto Create Events when a call ...
0
votes
1answer
43 views

Conditionally disabling an editable field in lightning Datatable

I have a requirement that an editable field in Datatable should be editable on certain conditions for example lets say, i have a field Disable_Action__c which is a formula field , when this field ...
0
votes
1answer
550 views

Conditional IF Statements in Row-Level Formula

I am simply looking to create a on-time vs. past due script. I have 3 columns (revised due date, original due date, and date closed). I want the following to take place. It works for the most part but ...
0
votes
0answers
23 views

Never left if condition

I've got a tricky question, my code doesn't work - suprise. I would like to return only a list of 'filtred' data but my code never leav a if condition. So when if condition return true and my script ...
0
votes
0answers
32 views

Replace default Lightning Table Sort Icons with Custom Icons

We have a table this is referencing the default lightning sort icons and need to replace all three(up, down, both) with different svg images from static resources. The current code references ...
0
votes
1answer
42 views

Dataloader Condition: Accounts with Contacts, Opportunities, etc.?

Is there a way in Dataload to add the condition when exporting Accounts so that it only pulls Accounts with Contacts, Opportunities, etc.? Thanks
0
votes
0answers
354 views

LWC: How create/edit record with fields displayed depending on the values ​of these fields

How create/edit record with fields displayed (hide/show) depending on the values ​​of adjacent fields? What are the best practice for that case? Thank you! For example: HTML <template if:true={...
0
votes
1answer
50 views

How do I make a field mandatory if the previous field is set to yes?

I need some help with JavaScript code, please. In Salesforce Communities, I have a form that asks a question, if you answer yes, then more fields appear. I want to set it to if yes, those fields ...
0
votes
2answers
99 views

Lighting Aura Controller - If Then on checkbox

I cannot figure out the correct syntax to evaluate a checkbox field on my component. I have to believe I have the syntax wrong because the IF statement is being executed even though the checkbox is ...
0
votes
1answer
178 views

Conditional display of Visualforce page on account layout

I'm new to Salesforce and i wonder how i can conditionally display visualforce page on account page upon that button click as illustrated on image .
0
votes
1answer
344 views

Process Builder: conditional update after calling Apex

I'm creating a process with Process Builder to call an apex method (that invokes a Callout Method). Everything is working like a charm. But after calling this asynchronous (@future) callout, I need ...
0
votes
0answers
629 views

how to know if an enterprise connection is alive

I want to know if a connection is valid, this is an example of what I'm trying to do: EnterpriseConnection connection = new MyEnterpriseConnection(); System.out.println("first " + connection....
0
votes
1answer
880 views

Why shippingpostalcode is showing (variable does not exist)

Here is my apex trigger but it is unable to recognise 2 fields i.e. billingpostalcode and shippingpostalcode. trigger AccountAddressTrigger on Account (before insert, before update) { for(...