PromptHtml
5 min
displays an html editor for the user to enter html text, and returns the text that the user entered syntax prompthtml(message, fieldareawidth, fieldareaheight, required, defaultvalue) enabled for for a description of the business object categories, see notes on "enabled for" docid\ u26v9fecfs6ilwa0 pvjd business object category yes/no business rules before save rules yes1 business rules calculation rules (after save, with or without also recalculate on load) yes business rules calculation rules (before save or always, without also recalculate on load) yes1 business rules calculation rules (before save or always, with recalculate on load) yes business rules editing rules yes2 business rules initialization rules yes1 business rules read only rules no business rules required rules yes2 business rules validation rules yes1 client expressions no object permissions no services yes ldap yes mobile yes quick actions (except ui quick actions) yes1 ui quick actions no reports yes1 search/dashboard without field references yes1 search/dashboard with field references no legends except in services except in services and when this field appears on a form or is triggered by such a field parameters this function takes a minimum of one and a maximum of five parameters parameter description message the message that shows as a prompt fieldareawidth (optional) the width of the text area in pixels fieldareaheight (optional) the height of the text area in pixels required (optional) can be either true or false if true, the user must enter a value in the html editor defaultvalue (optional) the text value to return if the user does not enter anything or select a value return value html text returns html text displayed as formatted content in an html field when switched to a non html field (example text field), it is displayed as plain text for example, the content "here is a test description" is displayed as follows in an html field here is a test description in a plain text field \<b style="color rgb(38, 38, 38); font family 'times new roman';">here is a test description\ \</b> examples the following are the examples of using this function in a quick action example 1 $(prompthtml("enter value")) returns a prompt to enter a value in the html editor text field example 2 $(prompthtml("enter value",,,true)) returns a prompt to enter a required value in the html editor text field the field cannot be left blank as the required parameter is set to true if left blank the text field is shaded red, and the html editor remains open when ok is selected example 3 $(prompthtml("enter value", 500, 350, true, "some default value")) returns a prompt to enter a value in the html editor text field that is 500 pixels in width and 350 pixels in height, and that contains default text "some default value" if the user does not enter a value, then "some default value" is the value returned
