Questions tagged [required-field]
The required-field tag has no usage guidance.
87
questions
0
votes
0answers
9 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
14 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
31 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 ...
6
votes
1answer
300 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 ...
0
votes
1answer
3k 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
0answers
371 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
1answer
35 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
68 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
535 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
87 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
878 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
69 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
278 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
1answer
442 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
351 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
48 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 ...
2
votes
0answers
2k 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
2answers
2k 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
1k 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
27 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 ...
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 '...
0
votes
1answer
450 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
1k 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
121 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
254 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
1answer
40 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
1answer
14 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
93 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
2answers
3k 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
40 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
447 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
577 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 ...
0
votes
2answers
844 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.
...
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 ...
1
vote
0answers
640 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 ...
0
votes
1answer
213 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 ...
4
votes
1answer
2k 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
1answer
1k views
Custom field as made Read only via Field level security and same Custom field as Required in Page layout
A custom field is made Read only from the Field level security and Required from Page layout. I can see the Field as Read Only for the User. Why it is happening? Is it because the Field level security ...
2
votes
1answer
2k views
Visualforce Required Fields and rerender
I have a Visualforce page that uses actionRegion and actionSupport tags to render a section of the page based upon the value selected in a picklist field. That all works fine. However, some of the ...
1
vote
1answer
320 views
Make custom field become required when certain condition is fulfilled
Could you please advise and give an example of a validation rule to help me make a custom field required when picklist value is selected.
I have a picklist called Type and a custom field called ...
-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
133 views
Geolocation Field in URL Hack
I have a Geolocation field on the Quote, and I'm using a custom button to open the Case Creation page, and pre-populating data via the URL hack. I'm not having any luck using the Geolocation field ...
-1
votes
1answer
975 views
Make field required on condition [closed]
We have 2 fields: One is a picklist (Final Status), and another is a multi-picklist (Condition for relisting).
We want to make Condition for relisting required based on the value of Final Status.
1
vote
2answers
1k views
how can i remove a required option on close date(opportunity)
in my organization do not want use close date field also I can not hide this close date field, is there any alternate way to hide field or to change label name of close date field.
3
votes
1answer
1k views
How to test for Visualforce required fields in Apex?
I have a VF page with some required fields on it. These fields are not marked as required in the data model, and my controller is not doing any validation on them either. How can I properly test this ...
3
votes
3answers
3k 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
1
vote
1answer
968 views
Can I edit or remove universally require standard fields in Salesforce?
The Orders object in Salesforce has a status field that is a picklist. I tried to edit the field by adding more options, but the editing I can do is very limited and for some reason I can not add more ...
0
votes
1answer
356 views
Validation Rule to make Notes required [closed]
I am trying to create a validation rule where if Stage is Closed Lost or Cancelled the Notes field is required. I am having problems with the formula.
0
votes
3answers
2k 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 ...