2022 Developer Survey is open! Take survey.

Questions tagged [required-field]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
2 answers
36 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?
user avatar
  • 351
0 votes
1 answer
50 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 ...
user avatar
  • 55
0 votes
1 answer
37 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 ...
user avatar
0 votes
0 answers
21 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 ...
user avatar
  • 1,268
0 votes
0 answers
24 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 ...
user avatar
  • 1,268
0 votes
1 answer
34 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 <...
user avatar
0 votes
2 answers
27 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 ...
user avatar
  • 23
0 votes
0 answers
52 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 ...
user avatar
  • 1
0 votes
1 answer
54 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 ...
user avatar
  • 1,420
0 votes
1 answer
48 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 ...
user avatar
0 votes
1 answer
28 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 ...
user avatar
0 votes
1 answer
484 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&...
user avatar
  • 157
0 votes
1 answer
3k 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 ...
user avatar
  • 29
0 votes
1 answer
103 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 ...
user avatar
0 votes
1 answer
384 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 ...
user avatar
6 votes
1 answer
717 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 ...
user avatar
1 vote
1 answer
7k 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 ...
user avatar
0 votes
0 answers
903 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 ...
user avatar
  • 151
0 votes
1 answer
298 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 ...
user avatar
8 votes
0 answers
94 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 ...
user avatar
  • 61.4k
1 vote
1 answer
945 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 ...
user avatar
0 votes
1 answer
168 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 ...
user avatar
  • 423
1 vote
1 answer
4k 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 ...
user avatar
  • 1,439
0 votes
1 answer
189 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....
user avatar
  • 2,068
0 votes
1 answer
600 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 ...
user avatar
  • 2,068
2 votes
1 answer
2k 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 ...
user avatar
4 votes
1 answer
760 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 ...
user avatar
0 votes
1 answer
520 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 ...
user avatar
  • 961
3 votes
0 answers
3k 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 ...
user avatar
  • 1,071
0 votes
2 answers
3k 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
2k 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-...
user avatar
  • 1,061
0 votes
2 answers
35 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 ...
user avatar
0 votes
4 answers
3k 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 '...
user avatar
0 votes
1 answer
642 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 ...
user avatar
  • 385
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 ...
user avatar
  • 1,995
4 votes
1 answer
153 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-...
user avatar
1 vote
1 answer
336 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 ...
user avatar
  • 123
3 votes
0 answers
2k 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. ...
user avatar
0 votes
1 answer
50 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. ...
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?
user avatar
  • 31
1 vote
0 answers
133 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 ...
user avatar
  • 121
0 votes
2 answers
5k 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 ...
user avatar
0 votes
1 answer
45 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 ...
user avatar
3 votes
2 answers
569 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 ...
user avatar
  • 2,367
0 votes
2 answers
617 views

Bypass "field required" validation BUT allow setting binding variables for commandButton?

Title says it all. By default (i.e., immediate="false"), commandButton action doesn't work if the page has required fields empty. If I put immediate="true", then the binded variables aren't set. How ...
user avatar
  • 4,532
0 votes
2 answers
1k views

Compare field value to list of values in Visualforce 'Required' parameter

I'm looking for a way to simplify my 'Required' parameter on my VF page fields. For example, I want my 'Account' field to be required if one of a half dozen 'Activity' options are selected. ...
user avatar
  • 3,652
2 votes
2 answers
2k views

"Standard" Lightning Components - How is the Required attribute used?

Most of the Lightning Components in the Lightning Component reference have a "Required" attribute as one of the options. Example Component Given that this appears to have no impact on validations ...
user avatar
  • 1,019
1 vote
0 answers
839 views

Force.com IDE Required field is missing: encodingKey

I successfully deployed my files to the Salesforce server yesterday but today, I got a "Required field is missing: encodingKey." It says the Resource is .DS_Store and the path is leading to the email ...
user avatar
0 votes
1 answer
216 views

Setting Fields as required without using Required = True

I have a SelectList from which user selects x,y,z recordName from Object 'A' in a pageBlock 'A' for which the an another pageblock 'B' gets rendered showing fields to insert into 'B' object. Out of ...
user avatar
  • 222
4 votes
1 answer
3k views

How to convert a lead owned by queue?

I am getting an issue: REQUIRED_FIELD_MISSING, Converted objects can only be owned by users. If the lead is not owned by a user, you must specify a user for the Owner field.: [OwnerId] while ...
user avatar
  • 3,873