Questions tagged [fieldsets]

A field set is a grouping of fields.

Filter by
Sorted by
Tagged with
1 vote
1 answer
24 views

Get FieldSet label on VisualForce page via apex for custom object

I am creating a VisualForce (VF) page as PDF as report for a custom object MyCustomObject supporting different languages. Therefore I want to retrieve the label of a FieldSet, to dynamically account ...
user avatar
  • 165
0 votes
0 answers
21 views

slds validation is not consistent on some are JavaScript others are ServerSide for the same logic

Problem WE have different kinds of validation error messages appearing. We want to give a consistent user experience, but are struggling to do so. Any feedback would be helpful. Server Side ERROR ...
user avatar
  • 1,258
0 votes
1 answer
73 views

How to use Conditional Field Rendering with Field Sets

I was looking for an example of conditional rendering of fields: like the one here How to hide/show the fields based on Picklist value My question is, how would you do this with the standard FieldSet ...
user avatar
  • 1,258
1 vote
2 answers
1k views

How to display 2 columns in LWC accordion section?

I have created a record edit form and I am passing fields dynamically from field sets. Below is the HTML code where it display only 1 field at a time. I want to display 2 columns instead of one. LWC ...
user avatar
0 votes
0 answers
24 views

Override required property on apex:inputField so that page can refresh?

I'm using fieldSets on a visualforce component and form. There is a formula {!OR(f.required, f.dbrequired)} for the required property. Main question, does this have to be modified with JavaScript? The ...
user avatar
  • 1,258
0 votes
1 answer
38 views

Apex Component Controller returning Null for simple string value

TL;DR Passing a simple string to component controller is returning null. I have already read this post but it didn't seem to imitate what I'm doing here. Pass value from apex component to controller ...
user avatar
  • 1,258
0 votes
0 answers
14 views

Salesforce fieldSets for GrandParent Relationship Details

I have installed a managed package which can use in some cases "FieldSets". Field sets as i have seen can be defined only in Salesforce Classic. My question is: Can i define in a fieldSet a ...
user avatar
0 votes
1 answer
44 views

Data table in lwc not showing columns [closed]

I have created a LWC component that uses datatable and for columns I am using fieldset. I am calling an apex class that will give me fieldset and I am pushing data in array of object that I am using ...
user avatar
0 votes
0 answers
18 views

Package create label and fieldset error

I have some package and trying to create new version. In old version there are object.xml with fieldset, but with adding new project (that works in another package) to that package it gives me error ...
user avatar
0 votes
1 answer
337 views

How to get a list of Field Set names in Apex [duplicate]

I need to create combobox with Field Set names. I know how to get fields for any Field Set, but how to get a list of all Field Set names. Map<String, Schema.FieldSet> canMap = Schema.SObjectType....
user avatar
0 votes
1 answer
110 views

Why is my Field/Object visible on a Visualforce page in Salesforce but not when the page is a public site?

I have a Visualforce page that displays a parent object and a list of related child objects. The page works when run inside Salesforce; the parent object info and list of child objects are visible. ...
user avatar
  • 3,368
-1 votes
1 answer
574 views

How to clone indirectly related record using Apex trigger?

User case : Clone/copy records to new created record once it's lookup field is equal to another record's lookup field which have related records Trigger trigger TrigC on Test_C (after insert,after ...
user avatar
  • 31
0 votes
1 answer
83 views

Exception: Invalid field for SObject Account

I have list which consists of field name. fieldList = new List<String>(); for(Schema.FieldSetMember memberObj : SObjectType.Account.FieldSets.rakch__DemoFieldSet.getFields()){ ...
user avatar
  • 9
0 votes
1 answer
324 views

Created By name and alias is not available in field set for contact

In my org, there is a custom object named Customer which has a lookup to Contact. I am creating a fieldset for the object. In the fieldset, I wish to add the name or alias of the person who created ...
user avatar
  • 1,004
3 votes
1 answer
453 views

Trying to solve an unclear "Apex CPU time limit exceeded" error on lightning component

I currently use a genuinely wonderful add-on component FieldsetLightningCompForm to display input/output fields on records that reference Field Sets to determine what is shown. It's beyond useful for ...
user avatar
2 votes
1 answer
211 views

Visualforce: Checkboxes selected in field set do not save to record

I'm an Apex and Visualforce beginner with not much overall programming experience to boot. I've been tasked with updating a VF page that needs to display a series of checkboxes defined in a field set....
user avatar
0 votes
1 answer
323 views

how to eliminate padding and/or margin between legend and form elements

I am creating a compound form using SLDS and I want to create a fieldset where the legend and fields align horizontally. However, as can be seen in the pic below, the legend and the fields are not ...
user avatar
  • 205
0 votes
1 answer
67 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 ...
user avatar
0 votes
1 answer
192 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 ...
user avatar
1 vote
0 answers
92 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 ...
user avatar
0 votes
1 answer
609 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 ...
user avatar
1 vote
0 answers
186 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 ...
user avatar
0 votes
1 answer
323 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 ...
user avatar
0 votes
1 answer
33 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.
user avatar
  • 103
3 votes
1 answer
2k 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 ...
user avatar
  • 103
0 votes
0 answers
115 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 ...
user avatar
1 vote
1 answer
992 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 ...
user avatar
0 votes
1 answer
115 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"> ...
user avatar
  • 319
0 votes
1 answer
45 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 ...
user avatar
  • 13
0 votes
3 answers
468 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 ...
user avatar
  • 1,595
0 votes
2 answers
4k 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. ...
user avatar
  • 53
2 votes
2 answers
575 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 ...
user avatar
  • 133
0 votes
1 answer
628 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 ...
user avatar
1 vote
1 answer
439 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 ...
user avatar
0 votes
0 answers
18 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? ...
user avatar
2 votes
1 answer
2k 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 ...
user avatar
  • 23
1 vote
1 answer
52 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 ...
user avatar
  • 11.1k
1 vote
1 answer
292 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 ...
user avatar
  • 879
0 votes
2 answers
110 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:...
user avatar
0 votes
1 answer
2k 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)...
user avatar
  • 1,194
8 votes
4 answers
4k 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 ...
user avatar
  • 1,612
0 votes
0 answers
111 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 ...
user avatar
  • 2,900
1 vote
1 answer
775 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 ...
user avatar
2 votes
1 answer
87 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 ...
user avatar
  • 95
1 vote
2 answers
3k 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 ...
user avatar
1 vote
1 answer
51 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, ...
user avatar
  • 57
1 vote
0 answers
277 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 ...
user avatar
0 votes
0 answers
408 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 ...
user avatar
  • 731
1 vote
1 answer
500 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 ...
user avatar
0 votes
0 answers
248 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. ...
user avatar
  • 602