A custom field can be added to standard objects that support custom fields and custom objects to extend the capabilities of Salesforce to suit the specific needs of an organization. Custom fields can be accessed in code by referring to them by their API Name which is their specified Field Name ...

learn more… | top users | synonyms

1
vote
1answer
14 views

Why am I getting “Error: Unknown property 'Opportunity_Package__cStandardController.Opp_Package_Rel__c' ” from this Visualforce page?

I am currently in the process of making a system for easily adding packages from a list into our Opportunities. This visualforce page needs to be accessible to use as a list button, but ever since ...
1
vote
2answers
27 views

how do i make a custom object name field with a lookup relationship

I have a custom object - responses. I want the name field to have a lookup relationship with the contacts object. Is this possible?
0
votes
1answer
44 views

Having trouble writing Apex trigger on custom object to update a lookup fields

I have a trigger that maps information from one Custom Object (Agents) to another Custom Object (Trident Contracts). I am able to update Seller Agent Name in the Trident Contract Mapping with the ID. ...
1
vote
2answers
65 views

How can I add a new value to a picklist using APEX?

I have queries pulling all of the information correctly but what I can't seem to find was a way to add new options to a picklist using APEX. I currently have Package__c.Products__c.add(new ...
0
votes
1answer
26 views

Custom Field Limits For Managed Packages

The documentation on global limits says this: The custom objects contained in a managed package publicly posted on the AppExchange don't count against the limits for your Salesforce Edition. ...
0
votes
3answers
32 views

Set a max value for a custom field in salesforce of type number

I have created a custom field in a custom object of type Number(2,1) in salesforce. Please let me know how set a max value for this field.
0
votes
1answer
10 views

How can we set field visibility to all profiles for a custom field created programatically using Metadata Api

I have created a custom field for a Standard Object (Opportunity) using Metadata Api. And the field was created successfully. But when I try to edit or create a new opportunity, the custom field is ...
0
votes
1answer
21 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
40 views

Modify field definition using scheduled Apex job

In the current data model of my org, there is a Master-Detail relationship between Account (Master) and Revenue (Detail). I have 12 custom fields on Revenue (January, February, ..., November, ...
0
votes
2answers
34 views

If statement in formula field

I am trying to develop a formula to determinate current days until the end of a campaign. For that i have the following fields Start Date End Date Days from Today to End Date The code that i am ...
0
votes
2answers
157 views

Why Custom Field's (Picklist - Data Type) values are not appearing on VF Page(PageBlockTable-Column)?

I am new to SFDC and started development in Apex and Visualforce Page with tutorials and online samples. So, here what I have tried and got stuck at the point. What I am trying to achieve: 1. In VF ...
2
votes
1answer
27 views

Are custom fields on Managed package objects deleted when upgrading the package?

If I have a managed package installed and I then add a Custom Field to one of the managed package Custom Objects, I then recieve a push upgrade of the managed package, would the Custom Field that I ...
0
votes
0answers
42 views

Can't revoke access to fields in Profiles using field name with namespaces for ProfileFieldLevelSecurity via Metadata API

I am trying manage access to “Custom Field-Level Security” for profile using Metadata API. I see on my organization API Name of current field is "nameSpace__FieldName__c" (the same is in workbench) ...
0
votes
1answer
73 views

custom field not displaying in visualforce page for user object

In my visualforce page I am displaying two fields from User object. {!$User.Alias} where 'Alias' is a standard field and is displaying fine. But {!$User.message__c} where 'message__c' is custom ...
0
votes
1answer
26 views

Access Custom Setting field value

I have a custom setting titled 'Authentication' and a field named 'token'. I need to access the value stored in 'token' in Apex, but I'm not sure how to do so. I'm aware of the get Instance() method, ...
1
vote
3answers
46 views

Restrict a particular alphabet combination in a field by validation

Can I restrict ' PO Box' , ' P.O. Box' or these values alongwith hyphen or so from being entered in a particular text field on a custom field on Account?
4
votes
1answer
190 views

Difference between read only and visible

can some one please explain what is the difference between visible and read only in field level security while creating fields. I am very confused.
1
vote
2answers
71 views

Uncheck checkboxes by changing particular checkbox state

I have custom fields in contacts form named checkbox1__c, checkbox11__c, checkbox12__c, checkbox13__c. When I check checkbox1__c then I want checkbox11__c, checkbox12__c, checkbox13__c to be ...
0
votes
1answer
50 views

YTD Transaction Count, FYTD Transaction Amount, Last FY Transaction Amount formula

I have Transaction object which has Amount__c field.Transaction is a child object to Account. So I have a requirement where I need to create 3 new fields in Account and populate YTD Transaction Count, ...
1
vote
1answer
65 views

Invalid cross reference Id when I'm querying fullName of a CustomField using Tooling SOAP API

I'm trying to get a fullName field of a CustomObject in query QueryResult queryResult = toolingConnection.query("select TableEnumOrId, FullName, LastModifiedDate from CustomField " ); I have ...
0
votes
1answer
15 views

Formula that depending the date of payment will assign the value of that payment

Another question from a newbie( most probably a silly one). I have dates of payments(date) with payments(currency). I created an amount paid field where CASE( Payment_Date__c , Relation__r.X1__c , ...
2
votes
0answers
38 views

Custom “IF” formula not returning correct records

I'm having a hard time with the following custom formula. I use this field in reports to determine if there are any data errors in our records. I can get the second scenario to work, but the first one ...
0
votes
1answer
42 views

Calculating the number of related contacts

Can anyone assist me in coming up with a formula/roll up summary for the Account object that will give a numerical value from calculating the number of related contacts
5
votes
1answer
101 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": ...
0
votes
1answer
64 views

How can I set field level security for multiple fields in the same custom object?

I have deployed several objects from one sandbox environment to another. I notice that the field level security settings has not been deployed. I used the change sets method to deploy these objects. ...
-3
votes
1answer
36 views

I am struggling with writing an if/then question for an opportunity [closed]

I inserted one new field: Is there a customer Impending event? If yes, I need to follow that with mandatory questions. What is the start date? (answer can be n/a) What is the end date? (answer can ...
2
votes
4answers
95 views

Can I force a recalculation of objects?

Addendum to How to set a field in oppty based on a parameter of it's products? I have a new CB for our product object. a workflow rule, updates the opportunity product object, when it's created. ...
1
vote
1answer
26 views

Conditional Checkbox to change following field type

I have a requirement where by I would like to have a field type following a checkbox change to a Master-Detail Relationship if the checkbox is check. E.g Employee Visitor (tick as ...
1
vote
1answer
46 views

Why does the RecordId get reflected in Name field instead of the Name?

I have created a custom object as XYZ and a created a Visualforce page based on the custom object. When I give the values in the vf page and save them.The record gets created, but in name field the ...
0
votes
2answers
50 views

Copy field from Activity Object to Contact Object

I wonder if there is a declarative way of doing this. When my Activity is closed, I want to copy a custom field of the Activity Object onto a custom field on my Contacts object. Is there a way to do ...
0
votes
0answers
83 views

How to convert number field to text in formula field?

I created a number field with options, Required, Unique and External Id checked, and want to use formula to convert Employee Number to text to prevent commas from displaying in the field. I tried to ...
0
votes
0answers
29 views

workflow fires without meeting criteria

i have a workflow and it fires only when custom_field__c is not null. an ETL job runs periodically, then this custom_field__c is updating, then the workflow rule fires, i get a email. Surprisingly, ...
1
vote
1answer
100 views

Custom field in standard object not available in reports on that object

I have a custom field in Accounts called Total Quality Rating. When customizing a report with report type Accounts, Total Quality Rating does not show up in the field list. Why would this be?
0
votes
1answer
47 views

Convert a picklist fieldtype to a number fieldtype without losing data

So we have a large number of text fields that we want to convert to number fields without losing data. We have a script to write to convert the text to numbers, so for example it was Monthly Weekly ...
2
votes
2answers
57 views

Populating standard name field with a case number

I am trying to populate the standard name field of an object with the case number. I have tried to use an apex class to accomplish this. Here is the code I used: GW_Volunteers__Volunteer_Job__c ...
0
votes
0answers
24 views

Contact Field calculated by trigger but now displaying on Person Account layout

I have a custom field within the contact object that was calculating values via trigger. The field and label had to be renamed due to various reasons. Within sandbox, when I was testing this I had ...
0
votes
1answer
163 views

Displaying custom field description on VF page

I have a requirement where the names of the custom fields far exceed the 40 characters limit. So instead I thought I would put a keyword in the field name and the whole name in the description of the ...
1
vote
1answer
163 views

Convert Custom field type from text to lookup/master-detail in salesforce

I have created custom field with Text data type..For some reason I need to change the field type to a look-up/master-detail relationship. But when i click on "Change Field Type" button for that ...
1
vote
1answer
86 views

Confused by default value of percent fields

As asked and learned here you need to enter 100 into a percent field to get 100%. BUT to set a percent field to 100% by default you need to enter 1 as default value. Otherwise it will result in ...
0
votes
0answers
54 views

How to create cross object field dependencies in my VF page?

I have a VF form page contains cross object fields, how should go about implementing field dependence between two different object fields? Thank you.
0
votes
1answer
32 views

Create new Field At Account Level

At Account level there is one filed named "Comment(Type-Long Text area)".now i want to create one another field at account level that give the count, Number of "comments" inserted by specific role of ...
0
votes
1answer
33 views

Creating a 'Scorecard' on the Accounts Page

I'm trying to create a basic 'scorecard' section that will display the following information on the Accounts Page: Value Open Opportunities Valued Closed Won Opportunities Number Leads Total Number ...
2
votes
1answer
46 views

Attach Metadata to Class Object

I am looking for a way to attach metadata to an Apex Class. My scenario is as follows: Suppose you have 40 custom Apex classes. There are two major systems that use these classes, but system A uses ...
1
vote
2answers
187 views

Change field Data Type without removing all references to said field in Controllers and Classes

Is it possible to change a field's Data Type without removing all references to it in controllers and classes? I'm considering changing a Rich Text Area to a Long Text Area. I'm receiving the ...
1
vote
0answers
46 views

Can I search the case lookup field by contact name?

I try to type in a contact name in the case lookup field and it brings up nothing. I need to know if there is a way to search this by name because end users are not going to know account numbers.
0
votes
3answers
55 views

Storing the results of a query in a variable

I have an object "Case" with the fields "Contact_Search_Name__c" and "CaseNumber" and I have an object "Case_Notes__c" with the field "Contact_Name__C" basically I am trying to use this query ...
0
votes
3answers
74 views

Adding a record to more than one case

I have written a visualforce page that displays a notes field, a date field, and 4 case fields. I am trying to submit the notes to each of the cases but it is only submitting it to one case. ...
2
votes
3answers
101 views

Sites Vf page field value not visible

I am trying to pass a field value from the controller to the VF page. It is a custom object. I have a list that queries a list of records, and I also query a look up field value. I debugged the list ...
0
votes
1answer
40 views

How to add cutom field in managed package in visaulforce page?

I have custom page in managed package and I added one custom button in this page when I click on this button I want to add one custom field in that page. Can any one help me?
1
vote
1answer
158 views

Master detail field is blank on visualforce page

I have a page that should allow me to select a case number from a master detail field but when the page is loaded the field is not there, only the label. I have tried to add an additional look-up ...