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.

Create a Formula Field as a URL Link

  1. In a sandbox, go to Application Composer and navigate to the object you're adding the link field to.
  2. Select Fields > Create Field > Formula.
  3. Select:
    • Formula Type: Text
    • Display Type: Simple Text Box
  4. Enter the Display Label and click Next.
  5. 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
  6. Click Submit.
  7. Navigate to the Mobile App Composer and select the object.
  8. Clone the Summary layout and add the Formula field to it.
  9. Save your changes.

Validate the Link Field

  1. Sign in to the client and navigate to your field list view.
  2. Navigate to the summary page of any of the existing records.
  3. 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.