How to use Codable Values

Using codable value is a professional shortcut that you can apply to show values based on the action that user takes. For example, as the form owner, it gets difficult to provide final confirmation to the user on what details they have submitted in the form.

For this purpose, codable values reduce your time and effort in automating this process.

Record ID Generation Rule#

There are three approaches to generate IDs for each form record. These are:

· UUID

· Incremental Number

· Customized Rule for customized rules

We can use codables value in the customized rule text field to dynamically generate record IDs. Only when we select the customized rule, the customized rule field will take effect.

The codable values are as follows:

Codable ValueDescription
{UUID}Automatically generate UUID
{AutoInt}Automatically generate the incremental integer

Example of the customized rule

Example 1: We want to generate a VIP record with UUID, we can put the rule as **VIP{UUID}**

Result: VIP5745c6ac-a2c8-4164-abbe-813fa977fa48

Example 2:

We want to generate a Branding related record with Incremental Integer, we can put the rule as **Coca-{AutoInt}**

Result: Coca-10

Email – Confirmation#

Email Receiver

The email receiver can be any element. We just simply include the {ElementID} to the Email Receiver field. Once the user submits the record, the element ID field receiver will receive the email as well.

If the email is not valid, the email won’t be sent out. If there are multiple email receivers, we can use comma to split them.

Example 1

We want to send an email to [email protected] and the email address entered in the {UserEmail} input email field. The code will be shown as follows:

[email protected],{UserEmail}

Email Response Body

For email confirmation, we can embed the codable value in the email body and send to our client or form creator. The list of the codable value in the email can be found in Codable Value List.

Codable Value List#

Codable value can be used as a placeholder and be put in hidden field as an input value or be used in Email Response Body as well as Result Page. The available codable values are as below:

Codable ValueDescription
{GWF-ClientIP}This value will be replaced by the user request client IP Address
{GWF-Date}This value will be replaced by the yyyy-MM-dd date value
{GWF-Time}This value will be replaced by the HH:mm:ss time value
{GWF-ProjectName}This value will be replaced by the project name under this form
{GWF-ProjectDescription}This value will be replaced by the project description under this form
{GWF-FormName}This value will be replaced by the form name
{GWF-FormDescription}This value will be replaced by the form description
{GWF-RecordId}This will replace the selected unique Id If we select UUID, it will be UUID, if it is Auto Increase Number, it will be integer
{GWF-Nrof-UniIP-Vote}This is used to return the total number of unique votes for a given record. Normally, it is used with the result page for voting purposes.

The other method of using codable values is by utilizing the element IDs from within your form. These element IDs need to be used in {} brackets to make sure that they are displayed in the emails and other areas wherever deemed appropriate.