Questions tagged [conditional]

The tag has no usage guidance.

27 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
263 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,587
1 vote
1 answer
624 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
423 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
  • 155
1 vote
0 answers
482 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
1k 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 ...
ARWarrior's user avatar
0 votes
1 answer
26 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
22 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
81 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
196 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
2 answers
1k views

Lightning Inputfield Conditional Required Field

I am trying to make one of my input fields conditionally required based on a checkbox value of false. Is this possible using a standard 'required' attribute in Lightning/Aura? The below doesn't seem ...
FWSFDC's user avatar
  • 75
0 votes
1 answer
584 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
  • 33
0 votes
2 answers
192 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
478 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
42 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
  • 135
0 votes
0 answers
207 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
358 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
  • 329
0 votes
1 answer
319 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
961 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,473
0 votes
1 answer
840 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
724 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
50 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