Questions tagged [fieldsets]

A field set is a grouping of fields.

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

Updating Target records of the same object dynamically

I need to update fields value on the target record , with the fields values on the source records dynamically. (Both records of the same object). I am trying to use FieldSets. Below is something which ...
0
votes
1answer
33 views

Javascript: Validating fields in a field set

I am working with a Javascript button to validate fields before the button can update fields. Since there are over 20 fields to validate, (With the possibility of adding more) listing out each field ...
0
votes
0answers
9 views

How to automatically add fields to field set and in picklist?

How can you automatically add newly created field of particular data type in the field set and create a new picklist value with its field label?
1
vote
0answers
42 views

Helptext with Fieldset in VF page

How to show Helptext for a field when a VF page is formed dynamically using Fieldset? I have created the VF page. I have put a helptext in field level, but it is not coming automatically. My code ...
0
votes
0answers
25 views

Field Sets displayed by VF Components in VF Page: How can changes to the fields be saved from the page?

I have a Lightning component for saving an application. So far the first tab embeds a VF page. That page in turn includes a certain VF component twice. Finally, the component dynamically pulls in a ...
0
votes
1answer
62 views

Apex: how to update record when field name is contained in a string

I'm pulling field names out of a field set and assigning them to a string. How can I update my records? for (Contact c:[select id, name, firstname, Individual.id, Individual.FirstName, phone from ...
0
votes
0answers
19 views

Issues with including “Billing Street” in a field set

So when I add "Billing Street" to a field set it displays 2 separate input boxes both labeled "Billing Street". One is a text input field and the other is text input box. Additionally, when I go to ...
1
vote
0answers
72 views

From a field set, retrieve field's help text

I have code that retrieves the fields in a field set. I can retrieve the fields' labels. However, I want to be able to retrieve the fields' help text. Is there a way to do this? Schema.FieldSet ...
0
votes
1answer
46 views

How can I re-render a visualforce form to collect different fields?

Scenario I must Collect 40+ fields worth of information on an visualforce form. This must be broken up on multiple pages instead of one long page. Story So Far and Research The form dynamically ...
0
votes
1answer
28 views

Edit field set description

Is it possible to edit a field set description? When I go to Field Sets -> (pick a field set) Edit I am able to edit only fields in the Field Sets, but not a description.
3
votes
1answer
739 views

Get List<Schema.SObjectField> from field set

I know that the name of the object is Obje and the name of the field set for this object if Fieldse. Now I would like to get a List<Schema.SObjectField> (i.e. fields from the field set). Right ...
0
votes
0answers
63 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
318 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
1answer
44 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
34 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
235 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
990 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
139 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
265 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
147 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? ...
2
votes
1answer
603 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
39 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
151 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
83 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
592 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)...
6
votes
4answers
2k 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
364 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
97 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
492 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 ...
2
votes
1answer
79 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
1k 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
46 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
0answers
196 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
287 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
307 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
154 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
712 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....
3
votes
1answer
301 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
224 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
80 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 ...
3
votes
1answer
2k 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
409 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
259 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
183 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
538 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, ...
1
vote
1answer
394 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
86 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
336 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
93 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 ...