Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [conditional]

The tag has no usage guidance.

28 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
1 answer
1k 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 ...
Mike Paisner's user avatar
3 votes
1 answer
3k 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 ...
Damira Cora's user avatar
2 votes
0 answers
270 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 ...
PrawnCrackers's user avatar
2 votes
0 answers
15k 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 ...
Json's user avatar
  • 1,667
1 vote
1 answer
711 views

Using Date fields in process builder as conditions

I am trying to use date fields as part of my condition in a process builder to say: If field #1 (number) has value > 0 AND field #2 (date) is less than 30 days ago (ie. date is within the last 30 ...
Chloe's user avatar
  • 11
1 vote
1 answer
609 views

Is it possible to delete a record created during a flow interview that has been interrupted?

I have a screen flow where a user creates a record in one screen, and in the next screen the user uploads a file to the record that has just been created. Then, the user presses a button that launches ...
bonzi's user avatar
  • 165
1 vote
0 answers
563 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 ...
Nail David's user avatar
1 vote
1 answer
878 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 .
Mahmoud-Abdelslam's user avatar
0 votes
0 answers
22 views

The test class coverage isn't happening because of a condition

I have written the below apex class public with sharing class BillingMonthlyCustomApp { public BillingMonthlyCustomApp() {} public static void insertRecordsIntoSchedule(Set<Id> ...
Akshay Vasu's user avatar
0 votes
1 answer
35 views

Flow Condition for entry

Need help for the below entry condition in the flow as my entry condition is not matching with the expectation. Object: Case Comment Condition for Entry: Case Comment parent record type should be ...
Shekher's user avatar
  • 23
0 votes
0 answers
29 views

LWC: in my LWC component i have looped the orders and i want to display icon and status based on order substatus values, how to achieve that?

Here is my code: <template for:each={Orders} for:item ='record'> <div class="individual-row" key = {record.Id}> <div class="col1"> <span class=&...
Lone Warriour's user avatar
0 votes
1 answer
185 views

Currency Formatting Issue in Conga Template Conditional Statements

I am encountering a problem with currency formatting in a Conga Word template while using conditional statements. The specific code snippet in question is as follows: { if "«...
hemanth kumar's user avatar
0 votes
0 answers
33 views

In GTL datasource can I have conditional content appear based on the first instance only?

I'm using Amspscript and GTL datasource to extract information from a field in a data extension called: cancelled. This field has multiple items in there and within cancelled there is another field ...
T01's user avatar
  • 9
0 votes
2 answers
108 views

Ampscript condition else/if to show the default link and conditional issue

I have DE lists like this for "Fruits" category: "Apple", "Apple A", "Apple 2", "Apple red", "Apple green", "Apple CA", "...
Uss's user avatar
  • 7
0 votes
1 answer
228 views

Flow Decision Condition is failing

I have a custom Object Request__c These are the fields on the Request__c record Account_Executive__c (lookup to Contact record) Central_Services__c (lookup to Contact record) Opportunity__c ...
GroundToCloud's user avatar
0 votes
1 answer
690 views

Alternatives for multiple If statements

I need to compare the fields and depending on that if its true then update a boolean variable and if its false then capture this field and get the label and append it to a string. I have like 10-12 ...
Raham's user avatar
  • 43
0 votes
2 answers
215 views

Aura Redirect Component Only if CustomerID is not Null

I wrote code for an Aura Redirect Component but I'm having trouble getting it to redirect only if the CustomerId is not null. Here's my code. Apex Controller public with sharing class NetsuiteQuote { ...
Laura Bejjani's user avatar
0 votes
1 answer
2k views

I want to render two data table based on condition..both data table are present in the same lightning web component!

here I have one product data table without checkbox,this is the default one,but when I navigate from opportunity page to product page to add products to opportunity,to add product I need to render ...
user97539's user avatar
0 votes
0 answers
492 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 ...
GroundToCloud's user avatar
0 votes
0 answers
43 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 ...
artist's user avatar
  • 145
0 votes
0 answers
221 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 ...
SDS-FrontEndTaz's user avatar
0 votes
1 answer
377 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
Steve's user avatar
  • 55
0 votes
0 answers
2k 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={...
Ivan S.'s user avatar
  • 349
0 votes
1 answer
363 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 ...
jesstp's user avatar
  • 13
0 votes
2 answers
1k 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 ...
Matt M's user avatar
  • 1,477
0 votes
0 answers
732 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....
Aldo Escutia's user avatar
0 votes
1 answer
1k 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(...
SHR's user avatar
  • 13
-1 votes
1 answer
97 views

How to write a Formula to have a checkbox checked by default and if the case is reopened, uncheck the box to track First Contact Resolution?

For example, if a customer comes in and a case is created, the FCR (First Contact Resolution) Checkbox is already checked by default, then if the Case has a status of Resolved and it changes, meaning ...
TStorm's user avatar
  • 1