Questions tagged [fieldsets]
A field set is a grouping of fields.
127
questions
0
votes
1
answer
259
views
FieldSet accessible in Lightning Flows?
I want to create Custom Contact screen with selected fields on Account record. Since record type selection is not available on quick action I was trying to create a lightning flows where I want to ...
0
votes
1
answer
166
views
Clone Field Set
Is it possible to Clone a Field Set?
I read this stack related to inserting and updating Field Set. Can I apply the same principle? What I want to do is to:
Allow User to Select Object
Select Field ...
0
votes
0
answers
97
views
How to get the list of fields that are available to ADD into the Field set?
I have a requirement where I want to show the list of Fields that are available to be added into the Fieldset. But I am not getting on how to retrieve the Fields that can be added into fieldset.
I am ...
0
votes
1
answer
345
views
How to show dynamically all fieldSets and their fields in a page bloc table
I want my visualforce page to show each of my fieldSets in a pageTable, and the columns of the tables to be the fields present in their fieldSet. I want to be able to do that because I dont want to ...
0
votes
1
answer
845
views
Iterate over all fields of all FieldSet of an SObject
Just posting this because it took me a bit of time to get my answer. For anyone wanting to get a list of all the Fields present on all the FieldSets of an Object, here is my method.
Hope it will be ...
1
vote
1
answer
246
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 ...
0
votes
0
answers
26
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 ...
0
votes
1
answer
542
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 ...
0
votes
2
answers
11k
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 ...
0
votes
0
answers
67
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 ...
0
votes
1
answer
282
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
...
0
votes
1
answer
389
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 ...
0
votes
1
answer
1k
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....
0
votes
1
answer
210
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. ...
-1
votes
1
answer
1k
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 ...
0
votes
1
answer
319
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()){
...
0
votes
1
answer
901
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 ...
3
votes
1
answer
723
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 ...
2
votes
1
answer
324
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....
0
votes
1
answer
820
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 ...
0
votes
1
answer
148
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
1
answer
323
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 ...
1
vote
0
answers
144
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
1
answer
1k
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 ...
1
vote
0
answers
223
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
1
answer
703
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
1
answer
55
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
1
answer
3k
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
0
answers
206
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
1
answer
1k
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
1
answer
195
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
1
answer
271
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
3
answers
687
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
2
answers
5k
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.
...
2
votes
2
answers
964
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
1
answer
820
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
1
answer
609
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
0
answers
19
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
1
answer
4k
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
1
answer
53
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
1
answer
372
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
2
answers
325
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
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)...
8
votes
4
answers
5k
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
0
answers
115
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
1
answer
948
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
1
answer
89
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
2
answers
4k
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
1
answer
54
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
0
answers
322
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 ...