rbv_api.getFormattedField()

Purpose

This function returns the formatted value of the field

Syntax

rbv_api.getFormattedField(objDefName, objId, fieldName, suffix)

Parameters

objDefName

The name of the object definition whose field value is retrieved

objId

ID of object record.

fieldName

The name of the field whose formatted value is needed

suffix

Suffix/Code used to format the field value .

Return value

String.

Permissions Required

View permission for the requested object type.

Supported fields and formats

Suffix UI Field
link TemplateSelect, ObjectLink
url TemplateSelect, ObjectLink, SharedImage, FileInput, LoginName
id TemplateSelect, ICodeSelector, Relationship, Reference
code TemplateSelect, ICodeSelector
value ICodeSelector, Reference, CheckBox, DecimalInput, TextInput, TemplateField, FormulaField, PhoneInput
text ObjectLink, EmailInput, TimeInput
html TextArea, SharedImage, FileInput
js DateInput
iso DateInput

Example

var firldUrlFormat=rbv_api.getFormattedField("Loan_Application", 16824, "LinkedIn","url")

rbv_api.println("getFieldUrlFormat: "+firldUrlFormat);

Output

http://www.linkedin.com/testuser