This guide will explain how to use the âtoLabel()â function to prefill Salesforce picklists with API values. It will make sure to display the Salesforce Picklist field value instead of the value API.
- Initial Setup:
- Drag and drop a âSalesforce Lookupâ field, a âSalesforce Prefillâ field, and two âTextâ fields onto your form. Rename these fields as needed.
- Configuring The âSalesforce Lookupâ Field:
- Click the pencil icon of the âSalesforce Lookupâ field.
- Set the âObjectâ and âDisplay Additional Fieldsâ options.
- Configuring The âSalesforce Prefillâ Field:
- Click the pencil icon of the âSalesforce Prefillâ field.
- Set the âObjectâ, âFormyoula Parent Fieldâ, and âSalesforce Parent Fieldâ options.
- Map the Form fields with the Object fields.
- Use the â
toLabel(Country__c)â function for Picklists with API values in the âSalesforce Prefillâ field. - Here â
Country__câ is an Object Picklist field with API values. - Save the changes.
Note: You can use this highlighted Text to switch Object fields from List to Text.
- Test the Form:
- It will display the Salesforce Picklist field value instead of the value API.
For any questions, please contact us - [email protected] or the Formyoula in-app chat. đ