Questions tagged [required-field]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
482 views

How to change the color of indicator

How can we show indicator for required field in VF page, There is always a red indicator , I want to have some other color indicator against the fields, I am using outputfield to show the values and ...
2
votes
1answer
1k views

Nillable for required attribute

I'm wondering meaning of "nillable" used in the required attribute below: <apex:inputField value="{!Case.Invoiced_Tons__c}" required="{!not($ObjectType.Case.fields.Invoiced_Tons__c.nillable)}"/&...
0
votes
0answers
46 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
1answer
22 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
1answer
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 ...
0
votes
1answer
22 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
1answer
101 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
1answer
790 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
1answer
1k 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
0answers
23 views

Make Opportunity field not required during lead conversion but required when field is blank on record update

Please help me on this urgently I have a field say "X__c" which is required on Opportunity Object only But during lead conversion since this field is not present in leads, it is preventing ...
0
votes
1answer
50 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
1answer
197 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 ...
3
votes
1answer
173 views

Find required values for salesforce objects

I want to know how to find Required Fields For An Object. Either through code or through a GUI. If I try to create a new User, I can't because some fields are required to be defined. How can I tell ...
0
votes
4answers
2k 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 '...
1
vote
1answer
6k 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 ...
6
votes
1answer
551 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 ...
2
votes
2answers
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 ...
3
votes
3answers
5k views

How to make a standard field to not be required

I have a standard Account filed which is required and I need to make it to be not required in particular layout. Could you please advise how this can be achieved? Regards, Dilyan
0
votes
0answers
690 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 ...
-1
votes
5answers
2k views

Make a custom field required when certain condition is fulfilled

Could you please advise and give me an example of a validation rule to help me make a custom field required when a picklist value is selected. I have a picklist called Type and a custom field called ...
0
votes
1answer
161 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
0answers
87 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 ...
0
votes
1answer
145 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
1answer
3k 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
1answer
138 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
1answer
472 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 ...
3
votes
0answers
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 ...
2
votes
1answer
1k 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 ...
3
votes
1answer
566 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
1answer
262 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 ...
4
votes
1answer
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 ...
0
votes
2answers
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 ...
0
votes
4answers
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-...
0
votes
2answers
30 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 ...
5
votes
2answers
7k views

How can I tell from REST api which of an object's fields are required?

I am trying to create objects with the REST api, which works fine as long as I specify a value for each required field in the POST. The question is, how can I tell from the API which fields are ...
0
votes
1answer
577 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
1answer
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
1answer
143 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
1answer
319 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 ...
3
votes
0answers
1k 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
3answers
162 views

Adding a record to more than one case

I have written a visualforce page that displays a notes field, a date field, and 4 case fields. I am trying to submit the notes to each of the cases but it is only submitting it to one case. ...
0
votes
1answer
45 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
2answers
2k views

Making a field required on the basis of its controlling field

I have one controlling picklist of subject and dependent picklist teacher. On the basis of subject picklist teacher picklist changes. I want that teacher field should be required only when teacher ...
0
votes
1answer
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
0answers
110 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
3answers
3k views

On a Live Agent Pre Chat form, how can I make a field mandatory?

I have a pre-chat page and it's working fine. I just need to make (say) the name field a required one. HTML 5 states you can use a "required" attribute on the <input type="text" ... > But ...
0
votes
2answers
4k 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
1answer
44 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
2answers
525 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 ...
0
votes
2answers
610 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 ...