The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
29 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
22 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
57 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 ...
4
votes
2answers
35 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
106 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
56 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 ...
2
votes
1answer
39 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
0answers
109 views

Vertical Required bar in Visualforce

I didnt get the required vertical bar in visualforce page after disabling the show header and standard stylesheet. My visualforce page code as follows <apex:page standardController="contact" ...
0
votes
0answers
27 views

set required to false and still submit value

I have a visualforce page with three input fields. If the first inputfield is set to a value, then the other two fields must be required. This works fine. However, when I remove the value, the two ...
1
vote
1answer
74 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
922 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
119 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. ...
1
vote
1answer
81 views

Nillable for required attribute

I'm wondering meaning of "nillable" used in the required attribute below: <apex:inputField value="{!Case.Invoiced_Tons__c}" ...
0
votes
3answers
144 views

No error shows up when a 'required' field is left empty

I am using to get as input certain values. I have set the 'required' attribure of inputText to 'true' but unfortunately, if i do not enter any value to the field then no error shows up. here is what ...
1
vote
2answers
226 views

selectOption Required only when Rendered

I have a vf page with radiobuttons. This is rendered only when a condition satisfied. The radiobuttons need to be mandatory only when it is rendered. But the problem is even if the radio options are ...
3
votes
2answers
154 views

Standard Name field required from standard page layout but not from Apex code

When the standard Name field of an object is set as Text, it shows a weird behavior if left empty. It is not possible to mark it as required or non-required, but when editing a record from its ...
8
votes
1answer
2k views

Force.com IDE profile deployment - You cannot deploy to a required field Object_Name__c.Field_Name__c

The following error pops up when I am trying to move all the meta data from one environment to another (with Profiles). You cannot deploy to a required field Object_Name__c.Field_Name__c Upon ...
0
votes
2answers
45 views

How Can I made Compulsory User Look up field on my Custom Object Page layout

I have Employee Custom Object who will be having his/her own User credentials, so I want to add Lookup of User on Employee Page Layout which should be compulsory / required field.
1
vote
0answers
131 views

Can I call Salesforce to get mandatory fields removed from my organisation?

We do not use a number of fields on opportunity, opportunity product, and service contract line items and would like to at the very least remove them from the page layouts. But alas we can't. Our ...
6
votes
2answers
2k views

Required fields do not allow cancel

I have a custom VF page that I am using as a custom cases page, standardController="case". I have an apex:form with a few apex:inputField to create the boxes. Inside the form I have a save and cancel ...
1
vote
0answers
85 views

Find the field is mandatory or not

I am developing an application for Salesforce integration. My requirement is to get all the validation rule and Mandatory fields from Lead category like we have lead status as mandatory in salesforce ...
4
votes
2answers
1k 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 ...
1
vote
0answers
266 views

Custom Button Using Search Functionality

I have a project I'm stumped on. I'm adding a detail page button that uses the search functionality to create a Find Duplicates Button on Contacts. Below is the code I'm using. I'm getting the ...
0
votes
2answers
513 views

required field only for some users

I have a required field that only needs to be required for some users. (not all) At this time, I have written a validation rule that will only do the validation for the users that I want. The problem ...
2
votes
2answers
885 views

How to identify the is field required from field set?

I have create a field set for a custom object and i am displaying the field set on a VF page. I am not using apex:page block bec i want to change the style of the page so i am displaying using a ...
4
votes
1answer
488 views

Apex: check if a record has empty required fields

How to check if a specific Account record has mandatory fields that are empty? What could be the steps of doing it? This is what I was trying to do (but with no luck): //All field names of the ...
6
votes
4answers
7k views

How can I dynamically render required fields using a Dynamic Component

Background I have a Visualforce page on which I am rendering a lot of fields using a Dynamic Component (which is an Output Panel that contains all of the fields). The fields are added based on a ...
2
votes
1answer
90 views

Unit test failing

There are a couple of classes failing with the following errors for a particular user who is trying to install a Managed package : "System.DmlException: Insert failed. First exception on row 0; first ...
16
votes
2answers
1k views

“Required fields are missing” on non-null field

My organization uses a third-party relational replication tool to sync data between Salesforce and a SQL Server database. The replication software is written in Java and uses the Salesforce API for ...
3
votes
1answer
360 views

Problem in making a field Required

I have multiple sections on page. I am rendering these sections using a list. I want fields in first section to be required only. so I have used an apex:variable which I am incrementing within ...
1
vote
1answer
1k views

How to make a picklist input field as required in a Visualforce page?

Making a picklist field as required means to remove the --None-- option. A picklist cannot be made required in the field setup. In a standard detail page, a picklist can be made required by checking ...
0
votes
2answers
449 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 ...
2
votes
1answer
118 views

Required Picklist from Custom Object view

When you add an new field to an object in Salesforce.com, it is possible to check the "Required" checkbox to make it mandatory for every data insert/update. I know it is possible to make it required ...
0
votes
2answers
856 views

Universally required fields

Which field cannot be universally required in salesforce? a)Look Up b)Text c)Email 4)Number I refer some guide it is given Answer a)Lookup but when i tried to make lookup field required ,its working. ...
6
votes
1answer
2k views

Visualforce Page with required fields and rerendering

We have a Visualforce page that uses standard pageBlockSections and inputFields. This page has a lot of dynamic rerendering of pageBlockSections based on fields. Up until now, all of the fields have ...