Versions Compared

Key

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

Raley IntakeForms can be customised in various ways. We will focus on customising the form visually, in other words in customisation of "L&F" - "Look and Feel" of the form.

Customization could be:

  • static
    • overriding CSS classes
    • custom CSS rules
  • dynamic - applied when certain condition is true

Static customization by overriding CSS classes

You can customize the form and you can customize the fields

Customization is done using the the CSS field in form designer. See the screenshot below with highlighted field

Image Added

There are special CSS classes you can use to easily customize your form's L&F.

To customize the form itself use the class 

Code Block
jifForm

To customize the DIv holding the field and label use the class constructed with prefix "jifFieldDiv" followed by a field name

In the screenshot above the field name is "priority" and thefore the CSS class to customize will be

Code Block
jifFieldDivpriority

The result of the CSS customization from the screenshot above you can see on another screenshot below

Image Added

Also, each field in IntakeForms has a "data-field" attribute with the value equals to field's name. Data-field is a physical HTML field (combo, text input, radio...) that keeps your data. For field with name "summary" it will be data-field="summary"

We have Summary field as textarea and can apply a CSS selector like this:

Code Block
textarea[data-field="summary"] { 
    color: green !important;
    height:400px !important;
}

This will make the fields text green and will increase the field's height to 400 pixels

Like is shown on the screenshot below

Image Added

Static customization by defining the CSS rules

Alternatively, you can define your custom CSS attributes to be applied on the form using the Form rules

Image Added

Click on "Add Form Rule"

Image Added

CSS styles will be applied on a "<form>" element. CSS attributes are expected with attribute name and value separated by ;

The CSS attributes will be injected into the form's style attribute directly

This is an alternative name on how you can customize the form itself (if for some reason overriding the ".jifForm" class does not work for you).

Dynamic (Conditional) customization

This is the customization of UI (or Look&Feel) based on the values selected/typed to the form's fields and is applied on the field.

Consider the following use-case - we want to highlight the summary field when priority is set to "High" or "Highest"

We will add the rule to "priority" with condition set to 

Code Block
priority:<3

And will set the CSS attributes to

Code Block
color:red;

We open the "priority" field properties and add a rule like this:

Image Added

Which translates to, set the style "color:red" to the field "summary"

Image Added

This rule will be applied on "summary" field when priority field has a value selected which is smaller than 3 (when Highest or High priority level has been selected).

 

You can apply CSS rules on multiple fields using the following construction

Code Block
summary=color:red;width:100%&description=background-color:grey;

This applies 2 rules on 2 fields, summary and description, where summary field will be applied with CSS attributes: "color:red;width:100%" and description field will be applied with "background-color:grey;"