Skip to main content

Blocks under the 'Custom Functions' Category

This article helps you understand blocks under the 'Custom Functions' category in AppBuilder Code Editor.

Updated over a week ago

Getter

Block for getting the element's custom property value based on a selected property name.

Get Value

See an example to understand how to use the 'Get Value' function.

Block to get an element's custom property based on a defined condition.

Setter

See an example to understand how to use the 'Setter' function.

Block to set the element's custom property value based on a selected property name and value as applicable.

You can also set URLs in the image control using this function to dynamically pull the image stored at any defined URL / in a project folder on Asite.

Location Association

Block for associating sites and locations in the project.

Setter (by getting value using the 'Getter' method)

Block for setting the element's custom property value by getting the value using the 'Getter' method.

Set Value

See an example to understand how to use the 'Set Value' function.

Block for setting custom property values based on a defined value.

Get Date Difference

See an example to understand how to use the 'Get Date Difference' function.

Block for getting the value of the difference between two dates as the number of days.

Add / Subtract Days

See an example to understand how to use the 'Add / Subtract Days' function.

Block for adding or subtracting the number of days to a date. Enter only numeric values in days.

Set Working Days

Block to set working days based on the working days defined in the project calendar.

Get Date Time Difference

Block for getting the value of the difference between two dates and times as the number of hours, or the number of hours and minutes.

Get System Field Value

Block for getting the system field value.

Get User Details

Block for getting user details, which can include their first name, last name, organisation, designation, project role, email address and contact number.

Compare System Field Value

Block for making comparisons with a system field value.

Auto Numbering

Block for applying auto-numbering on a form field while combining all its related sub-attributes.

Get Current Date/Time

Block for getting the current date/time.

Advance Auto Numbering

Block for applying automatic numbering on a form field while combining a selected set of related sub-attributes.

Get Min/Max Date

Block for getting the minimum/maximum date value.

Launch Form - Target Setup

See an example to understand how to use the 'Launch Form - Target Setup' function.

Block for getting the 'Create View' of the selected form type of a project (via API response).

Launch Form Field Mapping

See an example to understand how to use the 'Launch Form Field Mapping' function.

Block for getting the 'Create View' of the selected form type of a project populated based on mapped source and destination (target) fields (via API response).

Set Alert Message

Block for configuring a browser alert message to guide users if the value received from the user in a form field is not valid as per the selected form design.

Check for Associations

Block for checking files or forms associated, if any (from the same or other projects accessible to them), while sending the form message, by the logged-in user.

Check for Associations by View

Block for checking files or forms associated, if any (from the same or other projects accessible to them), while sending the form message using the selected form view, by the logged-in user.


Related Article: AppBuilder Code Editor


Did this answer your question?