Fields – Readonly Content

Readonly Field is used to display content in a read only state. The content displayed can be static or the result of a target call. This allows users to show the results from fields that have been filled in elsewhere in the application in a way that users cannot change. The content will be rendered as HTML so raw HTML/CSS can be returned as the content. Additionally you can use an iFrame, in which case the content must be a URL and not HTML.

A screenshot of an example Readonly Content field from the trellispark Features Demo application, showing styled blue text on a transparent blue background. Links are highlighted in green.

Here is an example of the field definition for the different content types:

iFrame:

Static:

Target:

Below are the available fields and their purpose:

  • Content Type
    • Determines the type of content that will be displayed.
  • Allow iFrame JavaScript
    • Determines if the allow-scripts attribute is added to the iFrame.
  • iFrame URL Type
    • Determines how the iFrame will get its URL, can either be static or from a target.
  • Open iFrame Button Text
    • When using an iFrame a button is displayed that will open the iFrame in a popup window, this is the text on the button. By default the text is “Open iFrame”.
  • Readonly Content iFrame URL
    • This is used to specify the iFrame URL when the iFrame URL Type is Static.
  • Readonly Content Target
    • This is used to specify the target that will return the iFrame URL when the iFrame URL Type is From Target and Content Type is iFrame. Otherwise this field is used to call a target that will return the read only content whrn Content Type is Target.
  • Readonly Content Static
    • Contains the content that will be displayed when the Content Type is Static.
Updated on October 31, 2023

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help!
Contact Support

Leave a Comment