Parent eForm Setup
Prerequisites
To setup and use FieldFX eForms, you need to:
Have these user licenses | Have these permissions | Complete these tasks and review these topics before continuing |
---|---|---|
|
Step-by-Step Guides
Before you can add an FieldFX eForm, the Job Share Trigger field must be added by following [Enable Job Share Trigger Field]. It is needed for the form to only download the related records that pertain to that object.
Customers should review the terms and conditions of the Software Subscription and Support Agreement (including the SFDC Supplemental Terms) to understand the rights and restrictions that Customers have regarding creating custom objects. |
-
Start creating the form by adding a custom object.
Add a Custom Object
Click to expand
Start by adding a custom object for the FX Form.
-
From Setup, enter
schema
in the Quick Find box, then select Schema Builder. -
Click the Elements tab.
-
Drag Object from the Elements panel onto the grid.
-
Complete the following:
Field Action Example Label
Enter a name for the FX Form
JSA
Plural Label
Enter a plural name for the FX Form
JSAs
Starts With
Select "Consonant" or "Vowel"
Description
Enter an object description.
This object is for Job Safety Audits
Data Type
Select "Text"
-
Select Allow Reports.
-
Click Save.
Figure 1. Start of JSA__c Object -
Select Add Google Docs, Notes, Attachments, related list to default page layout.
Continue with Add the Master-Detail and SyncId fields.
Add the Master-Detail and SyncId fields
Click to expand
includes::base:eticketing:partial$BO_MstrDetSyncID.adoc[]
Continue on with Add Fields to Collect Data.
Add Fields to Collect Data
Click to expand
-
Drag a field type from the Elements panel onto the FX Form/FieldFX eForm object.
-
Enter field attributes.
Don’t give a custom field the same name as a field on a FieldFX object.
-
Click Save.
-
To add more fields, repeat these steps.
See Typical JSA Form fields for suggestions on the fields to include tailored to your org and industry.
Continue on with defining the layout.
Define the Page Layout
Click to expand
includes::base:eticketing:partial$BO_DefineLayout.adoc[]
Continue with Add the Job Share trigger.
Add the Job Share trigger
Click to expand
includes::base:eticketing:partial$BO_AddJobShareTrigger.adoc[]
Continue with Add Record Types for an FieldFX eForm.
Add Record Types for an FieldFX eForm
Click to expand
-
From Setup, enter
object
in the Quick Find box, then select Object Manager. -
Open the FX Form object.
-
Under Record Types, click New.
-
In Existing Record Type, select "--Master--".
-
In Record Type Label, enter the record type.
-
Select Active then click Next.
-
Click Save & New.
-
Repeat these steps for other record types as needed.
-
Click Save to finish and then click Back to Custom Object at the top of the page.
Continue with Add Page Layouts for Record Types.
Add Page Layouts for Record Types
Click to expand
Once you have added the record types, you can add page layouts for each record type.
Page layouts control the fields that display on each version of an FieldFX eForm.
-
Under Page Layouts, click New.
-
In Page Layout Name, enter the record type.
-
Click Save.
-
Drag fields onto the page layout.
-
Click Save.
-
Repeat for other page layouts as needed.
Continue with Assign Page Layouts to Record Types.
Assign Page Layouts to Record Types
Click to expand
-
Under Record Types, click Page Layout Assignment.
-
Click Edit Assignment.
-
Click the column header for the record type.
-
In Page Layout To Use, select the record type’s page layout.
-
Repeat these steps if other record types are needed.
-
Click Save.
Continue with Add an FieldFX eForm Configuration.
Add an FieldFX eForm Configuration
-
Click
, enter
eForm Configs
.The eForm Configs tab opens.
-
Click New.
-
In Key SObject:
If the eForm is for jobs, If the eForm is for tickets, Select FX5__Job__c.
Select FX5__Ticket__c.
-
In eForm SObject, enter the API name of the eForm object.
For example, you can enter
JSA__c
for the API name.The sObject name, which is case-sensitive, must be the object’s API name.
-
Specify when to use the eForm:
Section Field Action Information
Key SObject Record Type
Select a record type to use the eForm for that record type.
Filtering
Account
Office
Segment
Price Book
Select a price book to use the eForm for jobs/tickets linked to that price book.
If the Price Book field isn’t available, you may have to add it to the eForm Config Page Layout. Sequence numbers control the order of FieldFX eForms in lists. Refer to the Sequence Numbers article for more information.
-
Click Save.
-
Continue with Add a Related List to Page Layouts.
Add a Related List to Page Layouts
-
From Setup, enter
object
in the Quick Find box, then select Objects -
If the eForm is for:
-
Under Page Layouts, click Edit next to a page layout for FieldFX Back Office.
-
On the toolbar, click Related Lists.
-
Drag the eForm into the Related Lists section.
-
Click Save.
-
Click Yes.
-
If needed in other page layouts, edit another page layout and drag the eForm into the Related Lists section.
-
Complete one of the following:
-
Use the Report Template Editor to create reports.
-
Add a report template for the report version of the eForm.
-
-
Move back to FieldFX Back Office.
-
Open the Report Templates tab.
-
Click New.
-
In Report Template Name, enter a name for the report template.
-
In SObject, enter the API name of the eForm object,
-
Click Save.
-
Click Attach File.
-
Click Choose File.
-
Select the report you defined for the eForm.
-
Click Attach File.
-
Click Done.
-
Continue with Add a Visualforce page for the Report Version.
Add a Visualforce page for the Report Version
See the eForm topic.
-
From Setup, enter
pages
in the Quick Find box, then select Visualforce Pages. -
Click New.
-
In Label, enter the name of the eForm.
-
In Name, enter the name of the eForm with underscores for spaces.
-
Copy the following code:
<apex:page standardController="ObjectName" extensions="FX5.ReportTemplateExtension"> <apex:includeScript value="{!$Resource.FX5__jquery1102minjs}"/> <style type="text/css"> div.apexp { margin-left:-10px; } body { margin-left:0px !important; } a { text-decoration:none; } </style> <script type="text/javascript"> $('td.labelCol.empty').remove(); $('td.dataCol.empty').css('width','50%'); $('td.labelCol.first').css('vertical-align', 'bottom'); $('td.dataCol.first').css('vertical-align', 'bottom'); $('input[type=submit]').appendTo('td.dataCol.empty'); function jsOpenReport(entityId, templateId, objectTypeId, namespace) { var pagePath ='apex'; var ctrl = document.querySelectorAll("[id$='reportPagePath']")[0]; var customUrl=''; if(ctrl!=null) { pagePath = ctrl.innerText; if(pagePath && pagePath.toLowerCase()!='apex') { customUrl='&customUrl=' + pagePath; } } var href = '/' + pagePath + '/' + namespace + 'Reporting?templateId='+ templateId + '&objectId=' + entityId + '&objectType=' + objectTypeId + customUrl; window.open(href, '_blank'); window.top.location=window.top.location; } </script> <div style="display:none;"> <apex:outputText id="reportPagePath" value="{!PagePath}" /> </div> <apex:dynamicComponent componentValue="{!form}" id="dynamic"/> </apex:page>
-
Replace the code on the Visualforce Markup tab by pasting over it with the code you copied.
-
In the first line of the code, replace ObjectName with the API name of the eForm object.
<apex:page standardController="JSA__c" extensions="FX5.ReportTemplateExtension">
-
Click the Version Settings tab.
-
Click -- Select to Add Installed Package -- and select FieldFX Base Package.
-
Click Save.
-
Continue with Update page layouts.
Update page layouts
See page layouts for more information.
-
From Setup, enter "object" in the Quick Find box, then select Objects.
-
Open the eForm object.
-
Under Page Layouts, click Edit next to a page layout for FieldFX Back Office.
-
On the toolbar, click Visualforce Pages.
-
Drag Section from the toolbar to a suitable location on the layout.
-
In Section Name, enter "Reports".
-
Under Layout, select 1-Column.
-
Click OK.
-
Drag the Visualforce page for the eForm report into the Reports section.
-
Click Save on the toolbar.
-
Repeat these steps if you need other page layouts.
-
Continue with Add a Workflow Rule using Salesforce Flow Builder.
Add a Workflow Rule using Salesforce Flow Builder
Add a workflow rule so that FieldFX eForms sync to FieldFX Mobile.
-
From Setup, enter
workflow rules
in the Quick Find box, then select Workflow Rules. -
Click New Rule.
The following message appears:
-
Create the workflow rule using Salesforce’s Flow Builder.
Click to expand to see moving to Salesforce’s Flow Builder important note
Salesforce will retire Workflow Rules and their Process Builder. The current FieldFX Managed Package workflows and process builder should be migrated over the flows before that.
-
Workflow Rules
-
Inventory_Location_Name_RSLB
-
OnStatusWorkflowPropertyChanged
-
RuleCriteriaHasChange
-
SyncConfigurationChange
-
UniqueWarehouseCatalogItem
-
UpdateUniqueId
-
-
Process Builder
-
Show all versions
-
Update PO Status from PO Misc Cost Receipt
-
Update Transfer Order from Transfer Order Line
-
Salesforce has a tool to assist in the conversion. In your org’s setup, use Quick Find search and enter Migrate to Flow
. Follow the steps in Salesforce Help: Convert Workflow Rules to Flows with the Migrate to Flow Tool (Beta).
For more information, see
-
Continue with Grant Permissions.
Grant Permissions
Grant permission to use the eForm.
-
From Setup, enter
permission
in the Quick Find box, then select Permission Sets. -
Open a permission set.
If the permission has a Namespace of FX5, it is part of the FieldFX Managed Package and is locked and can’t be edited. -
Under Apps, click Object Settings.
-
Open the eForm object.
-
Click Edit.
-
Under Record Type Assignments, select the record types for which to grant access
-
Under Object Permissions, select Read, Create, and Edit
If you didn’t select Unique when adding the SyncId field to the eForm, grant View All permission for the eForm object.
-
Under Field Permissions, grant Read and Edit permission for every field.
-
Click Save.
-
At the top of the page, click the arrow next to Object Settings and select Visualforce Page Access.
-
Click Edit.
-
Add the Visualforce page for the eForm to Enabled Visualforce Pages.
-
Click Save.
-
Repeat these steps for other permission sets as needed.
-
Continue with Configure Share Settings.
Configure Share Settings
-
Configure sharing settings to grant access to the eForm.
-
Continue to Finished adding an eForm.