Questions tagged [default-value]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
31 views

LWC parent to child component value gets a value undefined after navigating to a new page [closed]

I have a requirement in which I have created 2 LWC's, one is a parent LWC which is exposed to one of the flow screen and another child LWC which is exposed to a review screen. My parent LWC is ...
0
votes
0answers
19 views

Changing a multi-select picklist to a single select

After changing a multi-select picklist to a single select, Einstein Analytics still sees the field as a multi-value field even though it only contains one value now. Does anyone know why that would ...
0
votes
0answers
41 views

Set default value in SmartCapture field using AmpScript

Setting: Customers reveice an email about a webinar offer. In that email, there is a buttnn that redirects to a CloudPagewith a Smart Capture form which they can fill out to attend the webinar. The ...
0
votes
0answers
34 views

Keep Picklist values in a flow when redirecting

I have a flow to create a lead record. I have several fields, some of them are picklists where i have 2 choices, one choice for --None--, and another choice with the values of this field. For example, ...
1
vote
3answers
211 views

How do you set default Lightning attribute value from a Custom Label?

I'm trying to set Attribute Default Value from a Custom Label. I tried setting Custom Label in Attribute default Value in a Custom Component. e.g. <aura:attribute name="attributeFromLabel&...
0
votes
1answer
42 views

Set a default value for a lookup field

I would like to find a way to create an opportunity and set a default value for the field "Primary Campaign Source", the value will be all the time the same. It will be possible for the user ...
0
votes
1answer
37 views

How to prefill values of a new record in Lightning?

I know that this question covers the same subject, but the answers are not thorough enough, they just refer to the Salesforce documentation and that should be it. But the documentation is not clear ...
3
votes
1answer
43 views

Any way to include a new line in a field's default value?

I would like to default some JSON including new lines: [{ "text": [...] }] in a LongTextArea field: <?xml version="1.0" encoding="UTF-8"?> <CustomField xmlns="http://soap.sforce.com/...
0
votes
0answers
16 views

unable to get the default value of radioInput in controller

In my aura component, I iterate through an list of elements and render as radio buttons and would had set the very last one to be selected by default, but unable to get this value of default in ...
0
votes
0answers
81 views

lightning:inputRichText defaults to 'Salesforce Sans' style and '12' size of text even when the selected text has a different style and font

In a Lightning component Rich Text area, selecting text style and size always defaults to Salesforce Sans and size 12. Input some text into the editor then try to change the font style or size. See ...
0
votes
1answer
35 views

Initialize fields from an object when creating the object

Is there any elegant way to create a new record with its default values in apex for all its fields?? Example: 1-I have the object Car__c with the fields Color__c, Model__c, Brand__c, Type__c, ...
0
votes
1answer
314 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
1k 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
502 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 ...
1
vote
2answers
975 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
1
vote
1answer
552 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
220 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
29 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
1k 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
43 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
282 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
431 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
45 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
322 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
287 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
418 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 ...
7
votes
2answers
7k 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
1k 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
883 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
317 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
371 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
767 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
334 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
470 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
391 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
373 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
72 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
610 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
1k 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
2k 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
707 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
62 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?
1
vote
4answers
6k 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
742 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
43 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
2k 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
56 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
510 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
713 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 ...