Questions tagged [isblank]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
31 views

ISNEW and ISBLANK not working together in Process Builder [duplicate]

I am using PB to check if the Case record is new, and if the Account field is Not blank and a Case.Account.picklist__c has a Certain value then update priority. SO, my evaluation criteria are - AND ...
0
votes
2answers
15 views

Completely remove <apex:outputText> string if the value is blank

I'm using this code now: <apex:outputText rendered="{!NOT(ISBLANK(Description__c))}" value="{!Description__c}"/> But sthis string is between another strings, and when I use this code, I'm ...
0
votes
1answer
30 views

multiselect pick list custom field

I have a long if(includes formula that is aggregating a few common responses into the same text values. (It's longer than below but that is enough for my question). There are actually 3 outcomes I ...
-1
votes
1answer
28 views

Question on Multiselect Picklist

I am trying to assign values to a multiselect picklist which also allows users to input a unique value (lots of values). I would like to create a formula to assign a 1 to all values, and 0 to blank. ...
-1
votes
1answer
79 views

Validating input and throwing error

So I have this field input in my UI, I need it to throw an error if it is left blank, but it is not. This is my code <div class="slds-text-heading_medium slds-align_absolute-center"> &...
0
votes
1answer
27 views

How to display a field in the Lead layout only when the field is not blank?

In the lead object I need to display a custom text field on the lead page layout ONLY IF field is NOT blank. Is that feasible in Salesforce and how it can be achieved?
1
vote
1answer
220 views

Validation rule not firing if there are empty spaces in Long text area field

I have a validation rule that should fire whenever there is a value on field 'A' and the 'description' field Long Text Area(32000)) of case object is left blank. This rule fires for manual cases but ...
1
vote
1answer
42 views

Unexpected result in validation rule

I have a validation rules as follows: a <> related__r.b When a is null/or empty, the validation rule fails to trigger regardless of the value in b. I fixed the logic with the following: OR(a ...
1
vote
0answers
28 views

Isblank in visualflow always returning the same value

My flow starts with a screen element that has two fields. Then it proceeds to a screen element that outputs both fields and two formulas. The formulas follow the format of ISBLANK(Field1) and again ...
0
votes
3answers
819 views

validation rule error Incorrect argument type for function 'ISBLANK()' [closed]

IF( ISBLANK( Close_Date__c ) , TODAY() - Open_Date__c , Close_Date__c - Open_Date__c )
1
vote
1answer
531 views

Process Builder Entry Criteria Formula

I have the following entry criteria in the Process Builder !ISBLANK([Material_Request__c].Out__c.Email_Address__c )&& NOT(ISBLANK([Material_Request__c].Out__c) )&& [...
0
votes
2answers
478 views

Validation rule: ISBLANK

I need to display an error when a checkbox(field1) is true , AND if either of field2 or field3 is blank. The formula below doesn't work. AND(field1=true, ISBLANK(field2) II ISBLANK(field3)) Is ...
1
vote
2answers
773 views

Flow long text area input fields never seen as blank

I've got a flow screen with a long text area input field. No default value. Then I have a formula ISBLANK({!Field}) that always returns false. Why might this be happening?
3
votes
0answers
199 views

Why is an empty apex:attribute neither null nor blank but still an empty string?

Consider this simple component: <apex:component access="public" layout="none"> <apex:attribute name="myString" type="String" /> {!ISNULL(myString)} {!ISBLANK(myString)} {!...
2
votes
1answer
253 views

Salesforce process builder - When removing active account from hierarchy, failed but works when added to hierarchy

I currently created a process which checks if a parent account is present, has been changed and checks if a parent field contains a certain value. If these conditions are met, update other fields in ...
1
vote
0answers
333 views

Using IsNull in flows on a formula text field

I read on this forum that we should use IsBlank for text fields, which I assume holds true to formula text fields. I'm not sure however that holds true for flows as I don't see the option for IsBlank. ...
2
votes
2answers
96 views

Receiving “System.StringException: Invalid id:” error even though the String that is being created checks for the scenario

For the following String creation within a trigger, I'm checking to see if the field is blank. If not, then it should use that field's value as the correct string, else, it should remain blank. ...
3
votes
3answers
91 views

Valdiation Formula Broken

The scenario for the validation rule is: -if one lookup field is empty, then check that other n fields are not empty (if a lookup is empty, then make sure that the fields that will be used to create ...
2
votes
3answers
4k views

Check if list is empty

I have to check whether a list<Order> is empty or null.I can use isEmpty() to check this. But Can I use isBlank() with list<Order> to check.
0
votes
3answers
1k views

Only modify field value if field is empty?

Short question: How can I can I update a field only if it is empty? I tried IF(ISBLANK('Enrollment_Date__c'),CloseDate) but it needs 3 parameters, I gave it 2. What can I put in the 3rd parameter that ...
28
votes
4answers
58k views

How to check in Apex if a Text field is blank

I'm unsure what's the shortest and most robust way to check whether a Text field is blank / empty? /*1*/ Boolean isBlank = record.txt_Field__c == ''; /*2*/ Boolean isBlank = record.txt_Field__c == ...