Questions tagged [required-field]
The required-field tag has no usage guidance.
105
questions
-1
votes
1
answer
27
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
50
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
206
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
420
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
310
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
3k
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
835
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
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 ...
0
votes
1
answer
46
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
26
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
67
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
240
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
370
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
336
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
397
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
52
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
105
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
11k
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
435
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
1k
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
1k
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
8k
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
857
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
179
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
229
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
8k
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
306
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
964
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
1k
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
1k
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
6k
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
95
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
5k
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
889
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
196
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
384
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
108
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. ...
0
votes
1
answer
15
views
Requiring some fields to have a data and also to be changed using Validation rule
Scenarios is:
When I changed a certain date field, I want the text field and picklist field to be required and also to be changed? How can I do this using validation rule?
1
vote
0
answers
232
views
Inserting an account using REST API when custom required fields have been added by the client
We have an application that creates accounts on Salesforce using REST API populating them with data from an external database.
The problem we have encountered is that if the client (the owner of the ...
0
votes
2
answers
6k
views
Difference of data extension "required" and "nullable" attribute in marketing cloud?
When creating a Data Extension in Contact builder > Data extension, the field attribute required is available except primary key. When creating a Data Extension in Email Studio > Subscribers > Data ...
0
votes
1
answer
49
views
Added new required fields - references using ID not working
I've created a tool that takes loan data from one system and attempts to insert it into SalesForce. It assigns a Loan Officer by performing a query to find the NMLS # (which is an indexed field) for a ...
3
votes
2
answers
912
views
How does SObjectType.newSObject() works?
From the documentation > SObjectType Class I see that we can instantiate a new sObject from the SObjectType class
Could you tell me how does the code below create a new Account regarding the required ...