Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt
AvailabilityAction type

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Apply CSS on a field

Applies CSS styles on a given field, based on the condition set

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Apply Filter on a field

You can apply specific filters on "select"-type fields.

This is especially powerful, when your fields are backed by smart fields, web-service or database fields.

Your filter is applied ON THE DATASET this field relies on. Which means, the filter is applied on the source dataset

Few examples:

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Apply Filter based on matching criteria

Please see the following tutorial for details Using filter based on criteria rule

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Hide field

Conditionally hides the field and the "wrapping" container (if given)

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Hide container

Allows you to hide by CSS selector

Status
colourGreen
titleSERVER/DC

Lookup and set DB value

Helps you to have a lookup against the query you create from your database

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Lookup and set WS value

Allows you to make a request to a webservice and set the received values back to the form's fields

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Lookup and set JIRA issue data

Allows you to request issue details from your Jira (by issue key) and set the received values back to the

Status
colourGreen
titleSERVER/DC

Lookup and set Insight object data

Same as with Jira issue data, but allows you to query Insight data storage

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Lookup and set value

This rule allows you to lookup the data from another ConfiForms form and set received data back to the form's fields

Status
colourGreen
titleSERVER/DC

Run custom JavaScript

ConfiForms can execute a custom JavaScript function via ConfiForms Field Definition Rules, and your function can expect the following variables to be present

  • formName - is the "form" with HTML field elements. This allows you to access fields very easily via AJS.$(formName).find('#i_FIELD_NAME')
  • formId - is the "div" element in HTML holding the whole form and fields. This allows you to access fields very easily via AJS.$('#' + formId).find('#i_FIELD_NAME')

which means your function can have a signature like:

Code Block
function myfunction(formName, formId) {
}

See demo: Using ConfiForms Field Definition rules with JavaScript action to get and set field values

Since version 2.21.5 ConfiForms offers some helper functions to use

Excerpt Include
JavaScript functions
JavaScript functions

More on JavaScript functions

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Set expression

Same as set value, but you can set expression (Supported math operators, formulas and functions), which will be calculated for you

Useful to wrap expressions in () to help ConfiForms with parsing

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Set field readonly

Sets field as readonly, setting reverse condition will do the opposite. Please note that you will need 2 rules to set/unset the readonly status - you cannot have one (as with hide/show, for example)

Please also note that not all the fields can be set as readonly -  dropdowns are ALREADY readonly, and setting the as readonly makes no sense and no impact. 

Also, not all the fields are supported (work in progress). 

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Set form title

Rule to help you to changes form's title

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Set field label

Sets label text for the field

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Set value

Set's value to the fields. Please be aware, that internal value for the field is expected. See ConfiForms Field Types

Set the value on dropdown choice change

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Set value if empty

Same as above, but has additional check applied to ensure the value is set ONLY when the field has not value set

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Set submit button label

Changes label on submit form button

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Show field

Conditionally shows the field and the "wrapping" container (if given)

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Show container

The opposite what "Hide container" does, and allows you to show elements matching the CSS selector you put

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Reset value

Resets the field value

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Validate if exists in other Form

Useful action type to check if the record matching configured condition / filter exists in the other form

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Validate uniqueness

On form submit, the action checks if the record is unique within a dataset. Uniqueness criteria is calculated based on the fields given

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Validate on delete

This action is executed on "record delete", and could prevent the record being deleted based on the condition you set

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Validation rule

Validates record(conditionally)

Status
colourGreen
titleSERVER/DC

Status
colourBlue
titleCLOUD

Validation rule (dataset)

Validates current record against the rows in the dataset, For example, when you want to ensure the max number of records stored in the dataset

...