Questions tagged [required-field]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

Required attribute not setting to OFF even though I have selected a value in Lightning:Select

I am facing a weird issue. I have a parent and child component and have two picklists in child component. Based on 1st picklist value, I am rendering 2nd picklist with options. Both have required ...
0
votes
1answer
30 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
53 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
19 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
31 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
70 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
82 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
36 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 ...
1
vote
0answers
284 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 ...
1
vote
2answers
447 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
178 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
25 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
3answers
361 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
252 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
634 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
88 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
99 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 ...
2
votes
0answers
434 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
36 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
66 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
2k 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
37 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
304 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
400 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
554 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
1k 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
412 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
183 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
746 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
1k 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
148 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 ...
0
votes
6answers
1k 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
124 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
717 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.
0
votes
2answers
769 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
979 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 ...
4
votes
2answers
1k 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
649 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
271 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
1k 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 ...
-1
votes
2answers
1k views

How to bypass required fields in vf page [closed]

I have the below vf page where i am getting the required fields error if i dont fill the field and press the command button. I want to make both the section independent.How to do it. Below is my vf ...
2
votes
4answers
199 views

Need of 'Field Required' against 'Required Validation Rules' [closed]

Please let me know why 'required attribute' while creating field when we can do with Validation rules. Thanks in advance
7
votes
1answer
570 views

Dynamically get required fields with JS Remote Objects

I'm designing a VF SPA that uses remote objects. Much of the page is dynamic, and I use user input to define which sObjects I look up. I wanted to know how, given a user input for a sObj, I can return ...
1
vote
1answer
434 views

How to ensure that article manager use specified values for custom article fields?

How do I ensure that the article manager uses specified values for custom article fields? Which of the following options I should implement? validation rules on article object Make fields required on ...
1
vote
1answer
229 views

Conditionally requiring field in PageBlockTable based on selection checkbox

I have a pretty standard use case where I have a PageBlockTable where you can select any number of rows to process. //wrapper class public class CaseWrapper{ public Boolean selected {get; set;} ...
1
vote
1answer
120 views

Workflow and Field Update to Standard, Required Field

On the Standard Contract Object, I am trying to make a default picklist value for Status upon Contract record creation. When I use a workflow and field update, the field doesn't get updated in the ...
0
votes
1answer
407 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 ...
5
votes
3answers
706 views

Inputcheckbox Required field not throwing a validation

I created an apex:inputCheckbox and I made that checkbox required in the Visualforce page, by using required=true. I filled in all the fields except this checkbox and hit save, the fields are saving ...