The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
2answers
71 views

Why does my newly created Account object in a Unit Test not have the expected field default values?

I created a field on the Account object called In_Negotiation__c, it's a picklist with options 'True' and 'False' with a default value of 'False'. (Yes, I know it would make more sense to have it be ...
1
vote
3answers
52 views

How to set the default record type for Content Version in the Enhanced Profile User Interface

In the original Profile User Interface this is obvious: Go to the desired Profile Find the section called ‘Standard Record Type Settings’ Look for the label ‘Content Versions’ Click [Edit] and ...
2
votes
5answers
195 views

Set default value on children records when `New` is clicked on related list

One of the custom objects I have is rendered as a Related List of Opportunity. This custom object also has a custom field of Opportunity lookup type. To create a record of this type I go to ...
0
votes
1answer
44 views

Default email address on email type field

I would like to give an email field a default email address of 'test@gmail.com' onto every opportunity record in Salesforce. I need to use an an email type field for this (for setting email alerts ...
1
vote
2answers
96 views

Change the Default Role when Adding Contact Roles to Opportunity

I am new to being a Salesforce admin, and am going to a few classes in the coming weeks. Currently I am trying to find where to set the default value for Contact Roles when adding them to an ...
2
votes
1answer
96 views

Default sort order of the records in SOQL [duplicate]

I queried SELECT Id, Name FROM User LIMIT 10 It generates list of 10 users in some order randomly. On what basis does Salesforce give these 10 records? Ordered by CreatedBy ASC? DESC? Name ASC? ...
7
votes
1answer
302 views

Why are my default values always null for checkbox/boolean fields?

I setup a field in Salesforce: When looking at the metadata for my custom object containing this field, this is the data on that metadata field: "defaultValue": null, "defaultedOnCreate": ...
2
votes
1answer
146 views

How to load default values in skuid model?

Question When I'm creating a new object in the Skuid page is there anyway for the model to pull in the defaults values for the object? For example, if I've set the default value for the field, ...
4
votes
1answer
1k views

Visualforce: Control checkbox's default value

So I'm trying to Embed a VF page on my Incoming_Payment__c object, that will allow connecting a few opportunities to it. I want to: Show all opportunities related to the same account (Works!) 2. ...
1
vote
2answers
538 views

It is possible to create a custom text field with default text defined?

we need to include some explanation text related to some custom field in order to provide to the user the meaning of these fields and how it must to be completed. We have test with the help text ...
2
votes
3answers
3k views

UPDATE … Default Value in a lookup field

I'd like to create a trigger that automatically assign a value to a lookup field. I've tried to emulate what I've read on these 3 posts (but without success) ...
2
votes
2answers
951 views

Set default value for method inputs

How do you set a default value for a method input? public void myMethod(String input1, String input2); I would like to allow people to only need to state one of the inputs if they want (and have ...
1
vote
3answers
3k views

Setting default value for datetime field

What format do I need to enter when setting a default value when creating a datetime field?
3
votes
2answers
3k views

Default value in selectOption not getting rendered on VF page, but is correct on controller

My product variable is getting set correctly in the controller - but fails to render correctly on the VF page. This is just a snippet, but there is a LOT going on on the VF page - so that may very ...
5
votes
2answers
4k views

Setting default field values in apex for new objects

We need to set some default values in apex on a custom object before it is created. The user should ideally work with the standard object page - we don't want to re-create the whole page in ...
2
votes
1answer
1k views

Default a Date field to FISCAL YEAR start/end when a record is created without using Apex triggers

I need to set a Date field on an object to the organization's Fiscal Year's Start Date. This could be a formula field, but ideally it would be just a Date field so that the value could be modified if ...
6
votes
3answers
4k views

Setting Default picklist value on loading of Visualforce page

I have designed a VF page to create a new record in which I am trying to display the value of a pick-list field. I have set a default value for this pick-list field. When trying to create the record ...
6
votes
2answers
6k views

How to render VisualForce components based on default values

I am trying to render one component based on whether another one has a specific value set on a Visualforce page. Using the following, it works fine EXCEPT on the initial load (i.e. once I start ...
15
votes
2answers
296 views

Does 'default value' do anything if the object is created through Apex?

I created a currency field on OpportunityLineItem that has a default value set to 0.00. In my test method I create a record and insert it. I then query it back out and try to assert that the field is ...