Skip to main content

Questions tagged [default-value]

The tag has no usage guidance.

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

Default Value in Picklist

on salesforce, I have a picklist type field which contains three values: (1, 2, 3) But the value - None - disturbs all users. I set the value 1 as default when creating but I still have the value -...
laila19's user avatar
  • 21
-1 votes
1 answer
36 views

Add / Edit Field to Convert Lead Menu

When a user converts a lead by default it would add a new account, with account name. Not sure who/how it was setup that a Record Type field is here. Where might it be possible to see this behaviour? ...
Stephen John Cook's user avatar
0 votes
1 answer
58 views

Auto populating default values from Lightning button not working

I have a custom object called Custom_Request__c with several record types. We have a custom lightning button on the opportunity product object to create a record of Custom_Request__c of recordtype &...
Balaji Pooruli's user avatar
1 vote
0 answers
122 views

How do you create a List Button for Related Records with Default Values found in a related opportunity?

I am tasked with creating a list button on the Account object for the related opportunities list. The record that needs to be created needs to have other default values that are found in one of the ...
JEbert's user avatar
  • 11
0 votes
0 answers
324 views

How to remove default picklist value in the Task Subject field on my Global Action

When going to an Account record and using the "Log A Call" Global action, the Subject has a default of "Call" showing on the screen. I ensured the following: The Global Action ...
user7417's user avatar
  • 341
0 votes
2 answers
317 views

How to set default value in a checkbox field upon creation if that same checkbox in all records is set to false?

I have a custom object in my org. I also have a checkbox labeled as Active. I need the checkbox to have a default value when I create a new record only if: The Active checkbox are false in all ...
ratRiot30's user avatar
2 votes
1 answer
189 views

Validation Rule on Case checking user's profile

I need to change picklist default value in the status of an external insurance case to "under review" if the users creating the record are Angelita, Caio or Ivan (Profile: External Insurance)...
Marcelo Henrique Pereira Gomes's user avatar
-1 votes
1 answer
144 views

Field default based on user location

I am looking at a way to assign default values on a few custom fields based on user location. We have a few users located in a different country and I would like to default a few fields based on this ...
John's user avatar
  • 1
1 vote
0 answers
430 views

Syntax for setting default value to related records data

Can I set a default value for a text field (name=Sales Manager Number) on the Account that is equal to a field of the same name (Sales Manager Number) on the user record that is related to the Account ...
user7417's user avatar
  • 341
0 votes
1 answer
2k views

Salesforce Flow Button on a Record Page to automatically fetch record info

I am trying to create a Custom button on an Opp Record Page to trigger a flow. I placed the flow Button on Campaign__c Record page. This Object, Campaign__c, has a Masterdetail relationship with Opps ...
JACOPO PARISI's user avatar
0 votes
2 answers
492 views

Data Extension Default Value Length

appears to be 100 characters, is there a way either through Admin/Setup or Support to increase that?
PForsyth's user avatar
0 votes
1 answer
2k views

Default Value On A Custom Field

I created a custom percent field on the contact record page and entered in a default value in the "general options" section, but the default value will not auto-populate when I go to the ...
Salesforce Alex's user avatar
1 vote
0 answers
1k views

How to set a default value on a picklist from the running users User record?

There are 2 fields on the Account object that users want defaulted when a new record is being created. I was hoping to do this by setting a default value (formula) on the 2 Account fields as opposed ...
user7417's user avatar
  • 341
0 votes
2 answers
4k views

How to set default value in Combobox using LWC?

@wire(retrieveFields) listViewResults; get listViews(){ if (!this.listViewResults?.data){ return []; } let tempListViews =...
user avatar
0 votes
0 answers
1k views

LWC Pre-populate default values during record creation

I am trying to Pre-Populate some of the values during the record creation using NavigationMixin I am using below code this[NavigationMixin.Navigate]({ type: 'standard__objectPage', ...
Manish Anand's user avatar
0 votes
1 answer
884 views

Default value not displayed for some currency fields (and displayed for others)

I have a bunch of currency fields that are displayed in a lightning page using the lightning:outputfield. All of those currency fields have a default value of 0. 2 fields out of several dozens are ...
fredbe's user avatar
  • 135
0 votes
1 answer
2k views

Create checkbox filled with default value true

So obviously I can create a new checkbox field that defaults to true - but is there a way to actually "insert" a field's default value retroactively into all old records on creation of that ...
Semmel's user avatar
  • 2,509
0 votes
1 answer
2k views

The default value isn't getting selected in the picklist

I have a picklist field named Reporting type in the Quote Line Item object, for which I have set the default value as "Performance Reporting" at the field level. And also, there are no ...
Akshay Vasu's user avatar
0 votes
0 answers
826 views

Change Owner of Accounts Created by Portal Users

Recently we've been getting the error message that "you cannot create a Customer Portal user associated with an account owned by a Partner user". As I understand this, it is a limitation ...
BranHolm's user avatar
0 votes
1 answer
356 views

Process Builder Not Firing Immediate Actions "On Create" For "Do you want to execute the actions only when specified changes are made to the record?"

I have a process builder for which I need immediate and scheduled actions to fire. I have selected the option "Do you want to execute the actions only when specified changes are made to the ...
RedQueries's user avatar
0 votes
1 answer
3k views

picklist default value

i'm a little bit confused with default picklist values. Let's say there is need to be ensured that every time record is created or updated value is populated. I believe that setting Use first value as ...
pincet's user avatar
  • 919
1 vote
1 answer
7k views

Getting an option as default value in a lightning-combobox component

I have a lightning-combobox component, that gets options from a javascript method. What I am trying to do is to get one of those options, as default value in the html component. Javascript method is ...
blanco17's user avatar
0 votes
1 answer
753 views

Using lightning:actionOverride and getting URL parameters of the clicked button (defaultFieldValues)

I have a New button override set to send all New requests to a custom Lightning Component. This works fine. However, I have several buttons with defaultFieldValues set to prepopulate fields. Since the ...
Jacob Raccuia's user avatar
-2 votes
1 answer
260 views

Formula Field to display value in the number field [closed]

I have an object called (Object1) 'Vechiel' and that has following fields like - 'Age'-(Number) 'Type'-(Picklist) and Max_Term-(Number). And one more object called(Object2) - 'Application', which ...
Poorna.kj's user avatar
0 votes
1 answer
2k views

How to set value in lightning:combobox in aura lightning?

<lightning:combobox aura:id="filterCaseType" label = "{!$Label.c.CPL_Event_Type}" name="caseTypes" placeholder="Case Type" options="{!v....
user3012372's user avatar
0 votes
0 answers
408 views

VF Page with the Multi select picklists

I am trying to use the multi select picklist field in my VF Page. The multi select picklist field has a default value, I was hoping when I use this field in the VF Page I should be able to see the ...
user81642's user avatar
  • 687
0 votes
1 answer
590 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 ...
L Chris's user avatar
0 votes
0 answers
525 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, ...
Giorgos Galaios's user avatar
1 vote
4 answers
2k 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&...
Pasan Eeriyagama's user avatar
0 votes
1 answer
5k 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 ...
Oupat's user avatar
  • 733
0 votes
1 answer
307 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 ...
Sander de Jong's user avatar
3 votes
1 answer
999 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/...
Keith C's user avatar
  • 136k
1 vote
0 answers
643 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 ...
VJay's user avatar
  • 31
0 votes
1 answer
608 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, ...
Mar Andrés López's user avatar
0 votes
1 answer
2k 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 ...
coffee_bear's user avatar
2 votes
1 answer
4k 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 ...
Thomas's user avatar
  • 2,310
1 vote
1 answer
2k 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 ...
Niveth Kumar's user avatar
2 votes
2 answers
2k 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
anitha Kondreddy's user avatar
1 vote
1 answer
2k 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 ...
Natasha Ali's user avatar
4 votes
2 answers
535 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 ...
VarunC's user avatar
  • 6,000
1 vote
1 answer
35 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
Niveth Kumar's user avatar
0 votes
1 answer
2k 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. ...
Morgan Marchese's user avatar
0 votes
1 answer
125 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 ...
Guest Guy's user avatar
5 votes
0 answers
961 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 ...
Jason Clark's user avatar
  • 11.9k
3 votes
2 answers
1k 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
Kshitij Rodrigues's user avatar
0 votes
1 answer
535 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 ...
Dnyaneshwar's user avatar
1 vote
1 answer
1k 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.
rna7's user avatar
  • 347
0 votes
1 answer
750 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 ...
Ismael Slimane's user avatar
1 vote
0 answers
580 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 ...
Sudhir Kumar's user avatar
12 votes
2 answers
19k 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, ...
Andrej Lucansky's user avatar