Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

A field set is a grouping of fields.

0
votes
0answers
26 views

Order of picklist fields in fieldset

I have a fieldset that I dynamically get the fields from & display on a form. I am finding that the picklist fields consistently appear below the other fields on the form when I iterate through ...
1
vote
1answer
49 views

Visualforce Input Fields not being passed to Controller

We're running into an issue where values being entered into a Visualforce page are not being passed at all to the controller for the save actions that take place. I'm sure this is something simple ...
0
votes
0answers
10 views

How to uncheck required field from fieldset through apex code

I have a fieldset on a custom object which has 1 required field. for example: <apex:pageBlockSection showHeader="false" columns="2" id="test"> <apex:repeat value="{!$ObjectType.myObject__c....
0
votes
1answer
19 views

How to detect a required field from a fieldset?

I have this fieldset on my page which uses SLDS design: <apex:pageBlockSection columns="2" id="ppCard"> <apex:repeat value="{!$ObjectType.my_Object__c.FieldSets.myFieldset}" var="ap1"> ...
0
votes
1answer
28 views

Is there any possibility to edit a VF page that is in a managed package?

we have a custom object in which we are saving customer surveys. Once the case is submitted, customer gets an email with survey link(Visual forge page) and the response will be captured in custom ...
0
votes
3answers
40 views

How can I navigate into sObject FieldSet View/Edit page layout from Lightning Component?

I'm trying to build a component that render fields from an sObject FieldSet dynamically - The feature I'de like to add is the ability to navigate from component UI into the FieldSet page layout in ...
0
votes
2answers
71 views

Need to pass Field api name and its value in API call using field set [closed]

Need to make the requested body for Rest POST call in which key(API name) and value both go dynamically in JSON format. API name comes from field set and its value come from the database using query. ...
1
vote
2answers
39 views

How to find Field Sets that are using a Custom Field?

I created a custom field in an object a long time ago and now I want to delete it, so I go to Setup > Object Manager > {OBJECT} > Fields and Relationships, and where the field is, I click the ...
0
votes
1answer
83 views

Sort field set in Visualforce renderAs PDF with apex:repeat

Can anyone help me to sort a field set that I'm iterating through with apex:repeat? I have a Visualforce page that renders some data as a PDF using Field Sets and I just want the ability to sort the ...
1
vote
1answer
46 views

Copy data from object1.record to object2.record using fieldSet

The use case is when a record on Object1 is created, I want to create a new record on Object2 from code(trigger). For this, I am supposed to use fieldSet. Till now, I have created 2 fieldsets on both ...
0
votes
0answers
11 views

Field label showing different on different environment

I have a visualforce page which shows the Opportunity Owner using the field set. In one sandbox, this comes correctly as Opportunity Owner but in another sandbox when deployed it shows as Owner Id? ...
1
vote
1answer
141 views

How to retrieve FieldSets and their fields of an object via the API?

I work on a .NET program retrieving some metadata of a given Salesforce org via the API. I have already managed to retrieve a list of all standard and custom objects in my salesforce org via the REST ...
1
vote
1answer
33 views

Fate of unsupported Lightning features?

Has Salesforce has said anything (officially or unofficially) about whether or not Lightning will support the below features that currently you have to switch back to Classic to manage? I have not ...
1
vote
1answer
73 views

Trying to set a record's value based on a field via string. Is this dynamic approach possible in Salesforce?

Apologies if this was already answered, but I didn't see a clear cut solution for this issue in Salesforce. I want to be able to dynamically set values for a record based on a predefined list of ...
0
votes
2answers
65 views

Cannot bind fields using InputField

I'm using an apex repeat to build a modal using a fieldset. The following works fine: <apex:repeat value="{!currentFieldSet}" var="C"> <apex:outputLabel >{!C.Label}</apex:...
0
votes
1answer
103 views

Can I use FieldSets to check for changes to a list of fields within an apex method? [duplicate]

I have a scenario where in before update context I want to check a list of fields for changes. Normally I would simply compare the values between newMap and oldMap as such: for(Record r : Trigger.new)...
4
votes
3answers
574 views

What are FieldSet useful for?

According to the Salesforce documentation https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_dynamic_vf_field_sets.htm fieldsets are a merely UI feature, although they can be ...
0
votes
1answer
93 views

How to set Field as “Available for the Field Set” In Field Sets

I am trying to add set of fields to "In the Field Set" and other set of fields to "Available for the Field Set" I could not see a separate panel for "Available for the Field Set" in create/edit ...
0
votes
0answers
85 views

Apex heap size too large : Error for fieldset

I have to copy field values from Object Business_Plan_abv__c to Business_Plan_Approval_Process_Data_abv__c where API Names are exactly matching. For that I am using fieldset on Business_Plan_abv__c ...
1
vote
1answer
280 views

Dynamic field set with mass update

We have a VF page that allows users to mass update cases based on whatever fields are on the page. The page displays a temp case whose values are then applied to the list of selected cases. We ...
3
votes
1answer
69 views

Problem altering the format of fieldsets on visualforce page

I have created a number of field sets (some quite large) as a means of easily developing a large visualforce page with many different types of data. This has really sped up development, however, the ...
1
vote
2answers
771 views

How to dynamically retrieve FieldSet fields using Apex

I'm following the following tutorial: Using field-sets with visualforce I'd like to retrieve and populate a table's columns dynamically based on the fieldset. I would like to do this by somehow ...
1
vote
1answer
42 views

salesforce field mapping

I have a table (Detail) in SQL and creating a custom object in Salesforce (Detail__c). Below are the fields in SQL Detail Table: Will they be a picklist? But how can I relate Detail_Acc_no, ...
1
vote
1answer
115 views

Apex - Create WorkOrderLineItem fieldset

We have created multiple fieldset for various custom and standard objects using Apex but new "WorkOrderLineItem" object related to "Services" seems be different. Here is sample code which creates ...
0
votes
0answers
222 views

State and Country Picklist on Visualforce page

I have a page which displays input fields from a fieldset on Opportunity object. The fieldset contains Country and State picklists which render properly. The only problem is when the Opportunity ...
1
vote
1answer
182 views

Changing a Field Set programmatically in Apex [duplicate]

Is it possible to update/edit a field set from Apex programmatically? We have a javascript app that connects to an Apex back end. If possible, we want an admin to be able to update the field set we ...
0
votes
0answers
95 views

Reset Fieldset values to null - Apex

How do I reset fieldset values to null. I have fieldsets used in search criteria and I want to reset them. I do not want all values of the Object to be reset,but only fieldset values should be reset. ...
1
vote
1answer
381 views

Check DataType returned from 'Schema.FieldSetMember' getType() method in Apex class

I have piece of code below: for(Schema.FieldSetMember fsm : SObjectType.Vacancy_D2D__c.FieldSets.Tooltip_fields.getFields()){ if(fsm.getType() == 'String'){ tool += Utility.addTableRow(fsm....
0
votes
0answers
117 views

Dependent Picklists values are required in Field set but not showing as a Required on Visualforce Page

I used filed set to display fields on Visual force Page and in that there are three dependent pick-list fields. In field set I mentioned as a required. in Visual force page One filed is showing as a ...
4
votes
1answer
176 views

How to use a Fieldset with an arbitrary sObject in Visualforce?

Working from the fieldsets section of the Visualforce Developer's Guide, I can build a table based on a fieldset for a given sObject type, for example (error handling elided for clarity): // ...
1
vote
1answer
116 views

Retrieve FieldSet fields throught javascript possible?

I know how to get FieldSet fields from within apex through describe. but I have the need to do it using javascript is this possible ? and if so how. Thanks in advance Ronen
1
vote
0answers
68 views

From Service Cloud Console sidebar, unable to open record page from lookup field

Issue : I'm displaying a fieldset in the visualforce page(Detail Page) as custom console component .The fieldset contains text, Number and lookup fields. So, I'm using the component to display the ...
2
votes
1answer
576 views

Can't add certain fields to field set

I'm working with a client org that uses the Field Service Lightning managed package. FSL includes a few fieldsets we can edit in order to make sure certain fields show on certain pages. The FSL ...
1
vote
1answer
235 views

How to display FieldSet for an sObject List in PageBlockSection?

I have seen examples where people display fieldset for an sobject. But instead of mySobject if i want to display the field set for a list of sobjects?
2
votes
1answer
131 views

View Notes & Attachments in a Field Set

My request is simple our client wants to have a link that opens/downloads files in a view. The object has Notes and Attachments and I can add files to it no problem. The idea I have with my ...
1
vote
2answers
125 views

Field Set for OpportunityHistory object

Our use case is quite simple. We need to display some list of OpportunityHistory records on visual force page. But client would like to be able to control what exact fields are displayed as well as ...
2
votes
1answer
302 views

Is it possible to use a field set with a custom controller? [closed]

I'm been searching the forum, but haven't found a clear answer. Is it possible to reference a field set with only a custom controller? I could possibly use a standard controller and an extension, ...
0
votes
0answers
48 views

how to use field sets depending upon field value

after clicking on view detail link it should redirect on field sets depending upon account type.suppose if there is Email account type it should load "storeg Extent" field set,and if account type is ...
1
vote
1answer
273 views

Can we add a space while using field sets in salesforce

Is there any way to add blank space while using a Field Set in Visualforce Page.
0
votes
0answers
64 views

How can I access a fieldSet inside a custom button javascript

I am trying to use FieldSets in a custom button but getting this error: Field Lead.FieldSets.Submit_Fields does not exist. Check spelling. How can I access a fieldSet inside a Custom Button ...
2
votes
0answers
231 views

Dynamically create Form from Fieldsets in Linhtining component Using <force:InputField> and <aura:repeat>

We are trying to create Fields loaded from Field-sets in a Lightning component Using Aura This is what we Tried ; # <aura:iteration items="{!$ObjectType.Lead.FieldSets....
1
vote
1answer
66 views

Can field sets be used to define the fields in a list view?

I have many groups of fields and I'm planning on using these groupings to create both list views and Visualforce pages. Is there any way to create each grouping once and use it in both places, or do ...
1
vote
1answer
629 views

VisualForce : Dynamically rerendered inputFields are displaying on page without labels

Background: I created a VisualForce page with the intention of embedding it inline into an Opportunity layout. I've used the standard Opportunity controller with a controller extension. On this ...
0
votes
1answer
372 views

How to display different fields in different section using fieldsets

I have this below code where i trying to display fields present in fieldsets in vf page. The problem which i am facing is , Suppose i have 10 fields f1, f2....., f10 in fieldsset "FS1" , i need to ...
4
votes
1answer
2k views

How to display fieldset fields in a 2 column fashion with Lightning DS?

I'm trying to use LDS to display some fields in a VF page. Most sections in this page display the data with 2 fields per row with its label like the pageBlockSection tags do. This page was a regular ...
0
votes
1answer
2k views

How to use field sets in a lightning component to create a multi-grid structure form with a lightning look and feel?

I am trying to create a lightning component that would render a form based on a picklist selection. I read this post below and was able to kick start my development How to use fieldsets with ...
1
vote
0answers
109 views

How to get the SObject type of a field or type reference included in a fieldset?

I am trying to create a dynamic opportunity line item form in lightning based on product family and name. Hence, I am using the approach of field sets which are storing the list of fields specific to ...
0
votes
1answer
296 views

How to add Field/button in Salesforce in Create/Edit view to add a set of fields many times?

I have a module named as Portfolio Allocation, in this module, I want to have a (field and a button) pair by using which I can add a particular set of fields again and again. Sample template for the ...
1
vote
0answers
231 views

Field sets not displaying the default values for picklist

On case object we have created a field set. we have 3 record types for Case and for all the record types, we have set a default value for "Case Origin" field. In a custom VF page, we have custom ...
1
vote
0answers
280 views

Visualforce Email Templates + Field Sets - apex:outputField showing up blank in testing

I'm using field sets to dynamically query and merge fields across objects onto a Visualforce component to put in a VF email template. When I query the parent object (Intake) it seems to work fine but ...