Add an Attribute to the Partner Inquiry Page
In this example, let's look at adding the Job Title field to the partner inquiry page. The Job Title field (JobTitle) is a standard attribute of the Lead object.
In VBCS, complete these steps:
-
Navigate to Web Applications > partnerfinder > Flows > partner-finder > partner-finder-profile.
-
Click the Variables and Types icon (x) > Types tab > LeadType.
-
Add the Job Title field (JobTitle) to the type (LeadType) which is used for partner inquiry.
-
Click the Designer icon, then the Code button, to add the new field to the partner inquiry section (part of the partner profile page). Add this code:
<oj-input-text id="odps-pf-profile-contact-form-jobtitle" label-hint="[[ $application.translations.app.contactform_jobtitle_placeholder ]]" value="{{ $variables.newLead.JobTitle }}" display-options.validator-hint="none" > </oj-input-text>
-
Add the new field label to the string repository file using this code:
"contactform_jobtitle_placeholder": "Job Title", "@contactform_jobtitle_placeholder": { "description": "Contact form jobtitle place holder" },
-
Click the Play icon to run the application to verify the change.
-
Verify the change. Notice that the Job Title field is now included in the partner inquiry page.