Saturday, June 22, 2019

Highlighting a URL Link Custom Field

To highlight a URL link created as custom field with HTML code, follow the steps below:
  1. Create a new custom field (e.g. Entity Field: Customization > Lists, Records, & Fields > Entity Fields > New)
  2. Set the Label
  3. Set the Type to Inline HTML
  4. Uncheck Store Value
  5. Set Applies To and Display subtabs
  6. Set the Validation & Defaulting subtab as follows (example): '<a style="background: red" href="' || 'http://example.com/index.php?param=' || {custentityparam_id} || '"> CLICK HERE</a>'
  7. Click Save
Note:
  • Use "||" to connect strings
  • Put the field ID into brackets: e.g. {custentityparam_id}

No comments:

Post a Comment