The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [default-value]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
22 views

How can I change the default value for the 'assigned to' field in tasks?

People need to create tasks for other people in all kinds of spaces in the organisation. Often they click through the task creation activity on their related object they want to add a task to without ...
2
votes
1answer
85 views

How to add a string value to string array lightning component

I am fetching some recordtype values as a string array. I want to add the string -- None-- to the array so its obvious nothing is selected by default. How do I achieve this. I tried the following but ...
1
vote
1answer
134 views

Overriding Standard 'NEW' button using Visualforce or Creating custom button and replace standard button

Using a Before trigger/ Workflow has not helped me fill in or provide a default value to a standard field(NAME) while saving a new record. I was asked to build a Visual force page and then override ...
0
votes
2answers
198 views

how to remove default subject value “Call” from log a call button from activity history?

I want to remove the default subject value "Call" from the 'log a call' page from activity history section on case page. Could it be possible? Thank you. Thanks, Anitha
0
votes
0answers
8 views

Hide field from action by providing default value

I would like to hide the field "assigned to" by providing a default value. But I have no idea what I should provide in the formula. It's best to assign the user creating this action to be specified as ...
1
vote
1answer
116 views

Setting a default TIME value only, on a Date/Time field

We have a Date/Time field on a custom object which lets us choose the date (perfect!), but defaults the time as 12:00:00. We want it to default to 09:00:00. I tried to go and change the default ...
4
votes
2answers
127 views

SObjectType.newSobject(null, true) doesn't populate default values if called in vf action method, any tips?

I'm trying to create an sObject instance using following code: Schema.SObjectType targetType = Schema.getGlobalDescribe().get(objectName); sObject sObj = targetType.newSObject(null, true); This ...
1
vote
1answer
28 views

Set Text 'Not Attempted' in Date field

Is it possible to input a default 'text' to a Date Field. which will change to a date as soon as the person attempts something
0
votes
1answer
710 views

Lightning Component : ui:inputSelectOption : When Default value is set dynamically, user can't change Picklist value

I am working on a Multi-Location Case creation component for our community site. The basic premise is that we use Account Contact Relationships to relate a single User/Contact to multiple accounts. ...
0
votes
1answer
41 views

List of Salesforce Formula Values?

Is there some sort of master list of values like that with a description? I apologize as I don't know the exact terminology as to what I'm looking for but relevant to Process Builder, I'm looking for ...
4
votes
0answers
158 views

Datetime field default `now()` causes “value not of required type” error?

Per this answer, and everything I know about Salesforce formulas, if I want the default value of a datetime field to be the current time, I should be able to use the formula now(). In this case, the ...
3
votes
2answers
242 views

Time field doesn't show time with AM/PM properly when use default value

I am trying auto fill time field while creating new record. my field as here what i want to show but i am getting like this my field data type is time i am using default value
0
votes
1answer
39 views

search of “Related To” on Activities default to a Custom Object in LEX

I am trying to set the RelatedTo field of activity to search in a custom object. In classic we can simply use URL hacking & custom button. But in lightning this solution is not viable. I tried few ...
1
vote
1answer
185 views

Is there a way to query all fields on an object that have 'Default Value' ticked (and possibly filled in)?

Is there a way to query all fields on an object that have 'Default Value' ticked (and possibly filled in)? This should include custom fields.
0
votes
1answer
200 views

Lightning Community: Load with browser/local language

What I want to achieve is loading my community page with the current browser or local selected language. So far I have different page variations for each language, so I want to load the language ...
1
vote
0answers
351 views

Set Default Value of a data Extension column using FUEL SDK

I am using FUEL sdk to create Data Extensions. I want to set the default value of a column which is a DATE data type to Current Date. ET_DataExtensionColumn de_col_insertdate = new ...
6
votes
2answers
3k views

Define APEX method with default arguments

I am curious if APEX permits declaration of default arguments (or parameters if you will). When calling the method without specifying the value, method would be executed with the default value, ...
1
vote
1answer
741 views

Input type Checkbox attribute Checked is not set on load in ampscript

I have a checkbox in the page. It should be checked if the original value is True. I'm trying to implement ampscript for this, but it fails. Even it doeesn't show in the Preview. I debugged, the ...
0
votes
1answer
658 views

Set Stage default value for Opportunity

My client needs to have the Stage name with a default value, this mean the value should already be there when you click on the New button. Workflows, Process Builders or Triggers doesn't work because ...
1
vote
0answers
261 views

Dynamcially referencing an component attribute in default attribute of type=“object[]”

What is the correct way to default another attributes when declaring object[]? This: <aura:attribute name="foo" type="object[]" default="[ { 'title': 'Account Name', ...
0
votes
1answer
317 views

Making dependent picklist value default in VF page

On Opprotunity object there is Stage(standard) and Status__c(custom) picklist fields. Status(dependent) is dependent on Stage(controlling) field. I want to make Open defalut value for Status__c in one ...
0
votes
1answer
425 views

Changed a picklist field to not have a default value, but it still populates new contacts with one

I modified an existing Contact picklist field to no longer have a default value (it previously did). However, new Contacts still get set with a default value and I'm not sure why. Here's the field ...
0
votes
1answer
269 views

Default Name value in Lightning

We are currently using an s-control override on the New button to provide a default value for the Name field on various custom objects. For lightning experience, we have to replace this functionality ...
2
votes
1answer
338 views

Detect when user clicks cancel on createRecord modal

I am using sforce.one.createRecord() on a visualforce page. The visualforce page is then used as the override on the New button for a custom object. This works fine, except that I need to redirect the ...
1
vote
1answer
151 views

Default Columns for Custom Object View

I have a custom Object and have created a tab that displays the rows of the object. However, when I make a new view, only one column is diplayed by default. I can go in and add more columns, but I ...
1
vote
0answers
356 views

How do I set the default display for the Calendar?

Using Lightning '17 - is there a way to set the calendar to default to the monthly view?
1
vote
2answers
68 views

Default values in Object fields are not available in instantiated object, A workaround

Had an issue getting Default value of a Custom object field (Picklist) automatically when the object is instantiated in controller class. Below worked for me. InstantiatedObject.Field = (...
0
votes
2answers
434 views

Auto Populate New Text Field With Same Objects Picklist Field Value

I am creating a new text field for my contact object. Once I create this new field, I'd like it's value to be pre populated with the value from another contact field, but only when I initially create ...
1
vote
3answers
948 views

Default value for date field

I have created a new date field and set the default value to 'today()'. The date value is being shown for all the new records that are created after the creation of this date field. But the old ...
1
vote
2answers
1k views

Assign selected picklist value as a default value to my Text field?

I want to assign selected picklist value as a default value to my Text field. I am having a Select_Option__c field on Lead and a Enter Detail text field. I also want to add the selected value of ...
1
vote
0answers
567 views

Prepopulate Name and lookup field value from related list new button

On a custom object, I've managed to auto populate the custom object's name field to a default value using below custom vf page code: <apex:page standardController="CustomObject__c" recordSetVar="...
0
votes
1answer
57 views

Is it possible to set default value to default field?

Documentation says only about custom fields. And as I know I can not insert my custom js to default new-page. Any ideas?
0
votes
4answers
5k views

How to set a picklist default value?

How can you set a default value for the following field on Opportunity? Field: Stage Default value: "Stage 1 - Qualified"
1
vote
2answers
516 views

Change the label of “none” value of a picklist

I had a generic question. can the "none-" value of a standard picklist be changed to something else like "default" or "select" etc. What I want here is that, I want the default value to be present, ...
1
vote
0answers
36 views

Set default date-Value using the result of my trigger

I using a trigger to caluclate the min date regarding other custom objects an everything works fine. But I would like to fill the field "Gültig von" after pressing the Button "New Object" with the ...
0
votes
1answer
1k views

How to set a custom number field to default to 0

I would like to set a custom number field to default to 0 as the default value. I tried entering 0 on the default formula editor and even tried 1*0 as the default value of the number field. I am ...
1
vote
0answers
55 views

How to set a default Account within a contact record for a user profile?

I am wondering if there is a way to set the default Account ID within a Contact record for a specific user profile? I have tried workflow rules (doesn't allow field updates against lookup), I ...
0
votes
1answer
472 views

Default dynamic SelectOption picklist values to different values depending on object record type

I got the following method and vf page. I got a object called Business_unit and it has two record types (Business Unit and Project). I got a SelectOptions List, and I want to make the selectoption ...
2
votes
3answers
490 views

What does DescribeFieldResult.getDefaultValue actually return?

So in the documentation for the DescribeFieldResult.getDefaultValue method, it says: Returns the default value for this field There is a related method called getDefaultValueFormula whose ...
1
vote
1answer
51 views

Undefined default value for custom accounts fields

I have a custom field in accounts section of salesforce. As far as I have seen under its configuration, there is no default value set for this field but whenever a new account is created, the value is ...
3
votes
2answers
8k views

How can I set the default Value on a custom SelectOption List?

The Following works good to retrieve my account list in a SelectList on my VF. But I'm trying to set a specific Default Account as the first value in the list - Now it shows up last.. *Is there any ...
5
votes
5answers
1k views

Auto populate picklist when creating a opportunity

We have a country and district text field on the User object. We have country and district pick list field on the opportunity object. When a user creates a new opportunity, the very first time, we ...
2
votes
2answers
174 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
2k 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 select ...
2
votes
5answers
2k 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
971 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
479 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
3k 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? ...
8
votes
1answer
2k 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
1k 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, ...