The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
34 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 ...
1
vote
1answer
740 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) ...
1
vote
2answers
95 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
749 views

Setting default value for datetime field

What format do I need to enter when setting a default value when creating a datetime field?
2
votes
2answers
765 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 ...
4
votes
2answers
2k 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 ...
1
vote
0answers
367 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 ...
4
votes
2answers
2k 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 ...
5
votes
2answers
4k 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 ...
11
votes
1answer
159 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 ...