Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [required-field]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
40 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 ...
Keith C's user avatar
  • 136k
-1 votes
1 answer
46 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 ...
Jeisson Eduardo Rangel Baez - 's user avatar
0 votes
1 answer
65 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 ...
Keith C's user avatar
  • 136k
-1 votes
1 answer
35 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 ...
Omar 's user avatar
-1 votes
2 answers
104 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 ...
Shital Chavan's user avatar
0 votes
1 answer
230 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'...
Kevin Judd's user avatar
1 vote
3 answers
401 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 ...
user7417's user avatar
  • 341
1 vote
1 answer
593 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 ...
GroundToCloud's user avatar
0 votes
1 answer
596 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 ...
TechGuy's user avatar
  • 107
0 votes
0 answers
4k 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 ...
BigBoyz's user avatar
-1 votes
2 answers
993 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?
Aruna's user avatar
  • 427
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
48 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 ...
user88574's user avatar
0 votes
0 answers
27 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 ...
thinker's user avatar
  • 1,440
0 votes
0 answers
73 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 ...
thinker's user avatar
  • 1,440
0 votes
1 answer
347 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 <...
ApexCowboy's user avatar
0 votes
2 answers
483 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 ...
coinjar's user avatar
  • 23
0 votes
0 answers
486 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 ...
theNaN's user avatar
  • 1
0 votes
1 answer
511 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 ...
Pavan tej's user avatar
  • 1,460
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 ...
Eduardo Alvarado's user avatar
0 votes
1 answer
157 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 ...
Mack Brooks's user avatar
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&...
CPS's user avatar
  • 345
0 votes
1 answer
12k 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 ...
kikalz's user avatar
  • 39
0 votes
1 answer
601 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 ...
GroundToCloud's user avatar
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 ...
klakali's user avatar
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 ...
Brent Bowers's user avatar
  • 3,144
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 ...
Davide Buoso's user avatar
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 ...
testing's user avatar
  • 151
0 votes
1 answer
998 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 ...
Mira Cheytanova's user avatar
8 votes
0 answers
211 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 ...
cropredy's user avatar
  • 71.8k
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 ...
jameskbw's user avatar
0 votes
1 answer
240 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 ...
Raphael D's user avatar
  • 616
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 ...
Rajasekhar's user avatar
  • 1,601
0 votes
1 answer
313 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....
Thomas's user avatar
  • 2,298
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 ...
Thomas's user avatar
  • 2,298
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 ...
Renato Oliveira's user avatar
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 ...
gvgramazio's user avatar
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 ...
Salvation's user avatar
  • 1,189
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 ...
Madhurima's user avatar
  • 1,395
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 ...
user avatar
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-...
compski's user avatar
  • 1,352
0 votes
2 answers
136 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 ...
hellohowdoyoudo's user avatar
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 '...
Alexis MASSON's user avatar
0 votes
1 answer
937 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 ...
JustinF's user avatar
  • 485
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 ...
Hasantha's user avatar
  • 2,045
4 votes
1 answer
204 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-...
BritishBoyinDC's user avatar
1 vote
1 answer
389 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 ...
fredbe's user avatar
  • 135
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. ...
Pasan Eeriyagama's user avatar
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. ...
Mike Stan.'s user avatar
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?
JMRAF's user avatar
  • 31