Questions tagged [required-field]
The required-field tag has no usage guidance.
110
questions
-1
votes
0
answers
12
views
Making input field required and unrequired based on another input field value using javascript function in Visualforce page
After page fully loaded, I want to make the first in inputfield tag can change to required and unrequired based on another input field value using javascript function in Visualforce page.
When I am ...
1
vote
1
answer
104
views
For Lightning, can I have a field Lookup Filter that allows a blank lookup value when the path update button is clicked?
This lookup field filter on a field labelled "Fund Bank Account" on an object labelled "Distribution":
works well when a user is editing the lookup field. It only offers Fund Bank ...
-1
votes
1
answer
111
views
Can you make the field FirstName on a Person Account record required?
I need the FirstName field on a Person Account to be required but I can't find how to set it like that. I know you can use a validation rule but I want Salesforce to show the user that it is required ...
0
votes
1
answer
86
views
Missing required picklist inputs not scrolled to when a lightning-record-edit-form is submitted (but text fields are)
My lightning-record-edit-form (running in a Digital Experience) scrolls to off the screen text fields that are required but not filled in when the submit button is clicked. But the scrolling doesn't ...
-1
votes
1
answer
41
views
dependent picklists reset when you forget to fill in a required field and try to move to the next screen in a Salesforce Screen Flow
I have a situation where requiered dependent picklists reset when I forget to fill in a required field and try to move to the next screen in a Salesforce Screen Flow. Even if "Use values from ...
-1
votes
2
answers
179
views
Can we make the standard "Close Date" field non mandatory on opportunity or remove it from opportunity page layout?
I don't want "Closed Date" field on Opportunity layout but I am not able to remove it from page layout as it is standard field and required field on opportunity is there any way to achieve ...
0
votes
1
answer
468
views
How do you make a required field read-only for an object that has a read-only page layout and record type?
I have several fields that are required upon creation. Once created, I change the record type to a read-only type, associate the record type with a read-only page layout too. However, Salesforce doesn'...
1
vote
3
answers
496
views
Viewing and Updating Related Record when creating a Task
I might have been overly optimistic about coming up with a solution for the users.
When a user creates a Task from an Account meeting certain criteria (Account Type = XX), they want to require some ...
1
vote
1
answer
647
views
Opportunity Name required on Create even for Before Save Record Triggered Flow
I have a Record Triggered Flow (Fast Update , before Save)
Flow is executed when an Opportunity is Created or Updated.
The flow auto populates the name of the Opportunity based on a standardized ...
0
votes
1
answer
755
views
Method to choose when field is required LWC
Hello everybody I am currently working on a LWC form where I have some fields like inputs, comboboxes... In a combobox field when the user chooses, for instance the option A, an other lightning-input ...
0
votes
0
answers
5k
views
"Required fields are missing" I got this warning even the value in that field is not missing
Required fields are missing warning when I'm saving the record on a lookup field and can't be saved but it has the value that it required
(FinServ__PrimaryOwner__c is the API name of the Primary Owner ...
-1
votes
2
answers
1k
views
Record getting created in custom object without giving value for Required field
I have a custom object that has a custom field marked as required. When I try to insert data in the object without giving value for the required field, record is getting created. How is this possible?
0
votes
2
answers
2k
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 ...
0
votes
1
answer
49
views
validation rule creation
Good day,
please support me in the following requirement. I have to create a validation rule on Contact object. It should be valid only for the profiles below. It should be for insertion of Phone or ...
0
votes
0
answers
28
views
slds validation is not consistent on some are JavaScript others are ServerSide for the same logic
Problem
WE have different kinds of validation error messages appearing. We want to give a consistent user experience, but are struggling to do so. Any feedback would be helpful.
Server Side ERROR ...
0
votes
0
answers
76
views
Override required property on apex:inputField so that page can refresh?
I'm using fieldSets on a visualforce component and form. There is a formula {!OR(f.required, f.dbrequired)} for the required property. Main question, does this have to be modified with JavaScript?
The ...
0
votes
1
answer
418
views
How to check missing fields value that are required on submit
How to find all the required fields and display their lightning-tab[label] to the screen if the field is empty? The user should see which tab to go to if a required field is not filled.
HTML
<...
0
votes
2
answers
531
views
Bypassing Required Fields so just One Can be Edited on the Fly
I have some cases coming in via email to case. The issue is that I am looking to add a value to a empty date field without the need to add a value to other required fields so I can quickly triage as ...
0
votes
0
answers
603
views
Identifying Nullable vs Non Nullable fields in an Object
I am using Salesforce Metadata API and facing an issue with identifying fields that are nullable. The nillable parameter doesn't seem to be 100% accurate.
For example, in the Order object, the ...
0
votes
1
answer
588
views
Unable to set required attribute for lightning input
I'm currently looking to change the required attribute based on multiple scenarios.
So, I have a created input field with the required attribute as newAccRequire but by default, it's getting the true ...
0
votes
1
answer
53
views
Make a custom Pick List field required when certain condition is fulfilled [closed]
Could you guys please help me make a validation rule if when our "Invoice_Paid_Date__c" custom field is not blank then require "Send_Upsale_Email__c" to be filled out (Its a yes/no ...
0
votes
1
answer
169
views
Making Custom Field Required
I am trying to make a field required. I used an "ifblank" validation rule which returned an error if blank, this worked. However, this does not allow another field to be entered as the other ...
0
votes
1
answer
2k
views
Lightning:input required="true" is not working [closed]
I'm using a required field for an aura component that should does not save a record if any of required fields is missing.
This is my input:
<lightning:input aura:id="test" name="test&...
0
votes
1
answer
13k
views
Multiple OR statements in Validation Rule
Im trying to figure out a Validation Rule
IF Picklist Value is "Yes", then 4 fields must be filled out AND at least 1 of 2 Solution Partner fields must be Filled out.
I can figure out how to ...
0
votes
1
answer
687
views
Is there a way to ignore a required field for records auto created with Process Builder?
Through Process Builder, I am auto creating opportunities.
There is a custom field 'Volume__c' that I want to make required.
However, at the time of auto creating the Opportunity record, I want to ...
0
votes
1
answer
2k
views
Required fields in before-save flows
I've noticed that required fields are messing with before-save flows.
I want to add a default value to few fields.
One of the field is the required field (I am using an app from the store and it ...
7
votes
1
answer
2k
views
SOQL bug for null required-lookup fields?
It appears that querying null values for required lookup fields always returns 0 results, even if some records have no value in the required field (e.g. records created before the field was made ...
1
vote
1
answer
9k
views
LWC setCustomValidity on lightning-input-field
I'm using a <lightning-record-edit-form> with <lightning-input-field> children.
When required fields are not populated, it occurs the standard message "Complete this field".
What I want ...
0
votes
0
answers
2k
views
set default value/auto-populate required close date field when creating new opportunity
When a user creates a new Opportunity the Close Date field is required to be entered. However, the requirement is to automatically set this field to 1 date from when the opportunity is created. I ...
0
votes
1
answer
1k
views
Required fields under Record Types and Subcategory type [duplicate]
I need to make those fields required under 2 conditions. Record type and Subcategory (picklist).
I stated doing Validation rules, for the first one:
Record type: Passport
Subcategory: Renewal and ...
8
votes
0
answers
241
views
Apex Triggers and Order of Execution doc - System Validations
I thought I knew this stuff but in Triggers and Order of Execution Step 2
Loads the new record field values from the request and overwrites the old values.
If the request came from a standard UI ...
1
vote
1
answer
2k
views
Flow Builder OR logic on required fields in same screen?
I have a simple flow screen where I want a user to EITHER select a contact from a radio button record choice set, OR create a new contact by filling in a name, email, and phone screen component.
I ...
0
votes
1
answer
242
views
Workflow - Set Account Name
I created a workflow rule to update Account Names. I want that all my Account Names automatically fill as for example : Contact.FullName+' '+Contact.Phone.
The workflow rule work but the field Account ...
1
vote
1
answer
10k
views
Placing asterisk to to Lightning:input fields in LWC
I am trying to add a double asterisk to lightning:input tags in LWC, by using "required" tag inside the tag i am able to see the asterisk, but two issues with this is i have to show double asterisk to ...
0
votes
1
answer
319
views
Dynamic lightning:inputfield validation not working
I am trying to set a validation on a dynamic lightning:inputfield bus this is not working neighter do I get an error. I think my binding isn't correct.
Component
<aura:iteration items="{!v....
0
votes
1
answer
1k
views
Hot to make a dynamic lightning:inputfield required
I have a fieldset which I get from serverside and load on clientside I am adding the required parameter to the field but my component does not alert on required. I added the values behind the fields ...
2
votes
1
answer
4k
views
Why is the LastName field required for the contact? What is the best approach to import contacts that only have the first name?
The reason for this question is that I have a spreadsheet with lots of contacts to import, but some of them only have the first name. The LastName, being mandatory, will make my job harder.
I have ...
4
votes
1
answer
2k
views
In order to check if a field is required or not, is the result of isNillable method sufficient?
Accordingly to the documentation of isNillable method of Schema.DescribeFieldResult class:
isNillable()
Returns true if the field is nillable, false otherwise. A
nillable field can have ...
0
votes
1
answer
2k
views
make a required field in VF page
I'm trying to make a required field input - But when I put
**required=true**
in the apex:input component, Its like stuck the next JavaScript-dependent part and it's not working well until I fill it ...
3
votes
0
answers
7k
views
Making approval comments mandatory - different behavior Classic vs Lightning
I am trying to make Approval Comments mandatory for the Approver while Approving. I was using the following apex trigger, approval process steps and workflow field update as per the following blog
...
0
votes
2
answers
4k
views
Required field validation error message in VF Page using Javascript? (No Alert box or Popup's)
I want simple message 'Complete this field' (as shown in image below) to displayed under input boxes which are empty while submitting the form in VisualForce page.
Can someone tell me how to ...
0
votes
4
answers
3k
views
How to skip Required fields upon auto-creation of an object record?
I have this situation where I want to create a record on the ACCOUNT object and only when my custom field in ACCOUNT called 'Account status' is changed from 'new' to 'prospect', then it should auto-...
0
votes
2
answers
168
views
Figure out which fields are required from Setup
Is it possible to figure out which fields are required from Setup?
I mean, I can of course go and look at each field settings and check the required checkbox, but very often I need to look at a few ...
1
vote
4
answers
6k
views
How to find required fields for an sObject?
I know the question has already been posted, and answers where given ;
I read this topic ;
Of course I can try to insert the sObject and get the error listing the missing fields,
But isn't it a '...
0
votes
1
answer
961
views
Community Self Registration: make First Name required
The problem: I'm making updates to a Community which uses a login flow and self registration for users. I've noticed that it is possible for users to register without providing any input for First ...
1
vote
1
answer
2k
views
apex:inputText required="true" doesn't work as in the documentation
I want to make an inputText field's attribute required="true" on the VF page and display the error message : Error: You must enter a value (Note: I do not want to use an InputField here)
When I ...
4
votes
1
answer
210
views
LEX Equivalent of Immediate = TRUE?
In Lightning, I have a pretty simple modal that I call from an action button on a detail page that includes a text area field:
<div class="slds-form-element">
<div class="slds-form-...
1
vote
1
answer
392
views
Mandatory input cause actionSupport to fail
I want to create records from individual inputs in a table.
Individual inputs are made of Users or Contacts participating to a given meeting.
A Meeting__c object is the parent of User and Contacts ...
4
votes
0
answers
3k
views
What is the reason behind not being able to make a custom lookup field (looking up Standard Object) a mandatory field?
Not sure why we cannot make a custom lookup field a mandatory field, when the looking up object is a standard SObject.
e.g. Product Holder (Custom obj) has Component lookup field looking up Product2. ...
0
votes
1
answer
119
views
How can I enforce one checkbox or another
We use Salesforce to schedule appointments to help job seekers and require that our program participants allow us to remind them of upcoming appointments via email, text message, or both. ...