How can I create a link field in Mobile?
Here's an example that shows how to place a hyperlinked field in CX Sales Mobile.
Here are the high-level steps:
Create a Formula Field as a URL Link
- In a sandbox, go to Application Composer and navigate to the object you're adding the link field to.
- Select .
- Select:
- Formula Type: Text
- Display Type: Simple Text Box
- Enter the Display Label and click Next.
- Populate the script field with the Groovy script that will give the formula
field a default value. Here's an
example:
def fURL def rUrl = "https://upsell-stage.oracle.com/web?view=context&customer=" fURL = rUrl + PartyNumber + "&embed=Y&source=ACCT" return fURL
- Click Submit.
- Navigate to the Mobile App Composer and select the object.
- Clone the Summary layout and add the Formula field to it.
- Save your changes.
Validate the Link Field
- Sign in to the client and navigate to your field list view.
- Navigate to the summary page of any of the existing records.
- You should see the formula field displayed as a link that gets its default value from the Groovy script in the summary view. Clicking on the link should either launch the browser or open the corresponding application.