Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [required-field]

The tag has no usage guidance.

1
vote
2answers
36 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
0answers
10 views

Error Code: 10 - The subscriber is missing required attribute value for Stories or News and Events

So pretty much what the title says. The field is currently located within Marketing Cloud, under Email --> Subscribers --> Preference Management. The field is currently set as hidden and has a ...
0
votes
4answers
32 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
21 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
110 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
95 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
406 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
63 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
52 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 ...
0
votes
0answers
194 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
35 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
46 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
1k 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
36 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
245 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
302 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
420 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
306 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
121 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 ...
3
votes
1answer
869 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
581 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
73 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
485 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
110 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
453 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
575 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
871 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
906 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
498 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
221 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
0answers
88 views

Visualforce page bypass required fields on insert

I created a VF page that the user(opportunity owner) is directed too when they click on an opportunity and they are the opportunity owner. The page just asks the user simple compliance questions and ...
0
votes
3answers
849 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
893 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
182 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
556 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
305 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 ...
0
votes
1answer
321 views

Why is there no way to determine if a field is required?

I look at the question here: Is there a way to find required fields on an objects? which offers this advice: I think you can infer it, if a field is Createable and not Nillable and not ...
1
vote
1answer
207 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
109 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
361 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
608 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 ...
0
votes
1answer
1k views

Error : You must enter a value

All users in my org are getting below error for required fields inspite of filling required fields using magnifying glass lookup icon and trying to save a record on a Standard Pagelayout. These two ...
3
votes
1answer
343 views

Field universally required, what happens in the Page Layouts?

I have the following code. Account a = new Account(Name='Doria Account'); insert a; It returns me an error because the field "Industry" is required. What is weird is the fact that in the Page ...
3
votes
1answer
107 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 ...
1
vote
1answer
236 views

How to “unrender” an OutputPanel with required fields on

I've overridden the new Opportunity page and I have a dynamically generated picklist of Contact Names and a static value "New Contact". When "New Contact" is selected a new panel is displayed with ...
3
votes
3answers
3k views

The input text <apex:inputtext> in a repeat (for loop) doesn't work with the validation required field

I have a custom object Team member contains four text fields First Name , Surname, location and job title and First Name and Surname is a required fields (When i create them i make them required). ...
0
votes
3answers
160 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. ...