Joget DX Available for Download

Check out Joget DX, the next generation successor to Joget Workflow for faster, simpler digital transformation.

Skip to end of metadata
Go to start of metadata


Custom HTML in Form Builder can be used to achieve advanced form design.

Get Started

The easiest way to see how the Custom HTML works is to use the existing built-in App Expenses Claims. Here are the steps:

StepsScreens (Click to view)

  1. Start the Joget Server and open the App Center.

  2. Log in as admin and click on the pencil icon on the Expenses Claim to open the Design App. (see Figure 1)

  3. Click on  Expense Claim Form and you will be directed to the  Form Builder. 

  4. Hover the mouse over the Custom HTML element on the canvas and click on Edit to open up the Edit Custom HTML properties. (see Figure 2). 

    Take note!
    <a href="setupCategory" target="_blank">
  5. This Custom HTML is used to redirect to another page in the App when the user clicks on "Setup Category". 

  6. To see it working, head back to the Design App and click the Launch button in the Userview column.

  7. Click on Create a New Expense Claim button on the Dashboard, fill up the necessary details and click Continue Next Screen

  8. Here you will find the link. Click it to see it redirects you to the Setup Category page.

  9. Head back to the Design App and open up the Expenses Claims Apps under Userview column. 

  10. In Userview Builder and take a look at the properties of Setup Category. Note that the <a> href attribute used in Custom HTML element was using the CustomID to specify the page the link goes to. (see Figure 3)

Figure 1

Figure 2

Figure 3

Custom HTML Properties

Edit Custom HTML

NameDescriptionScreen (Click to view)

Element ID (By declaring as "html", a corresponding database table column "c_html" will be created)

Please see Form Element for more information about defining the ID and list of reserved IDs.

Making it Hidden

You can name the ID as "hidden" and the content will be hid away in the runtime/actual userview.

Custom HTML

Custom HTML in Form Builder can be used to achieve advanced form design by putting in any valid -

  1. HTML

    <b>this text is in bold</b>
  2. JavaScript (jQuery is supported)
    Don’t forget to put in <script type="text/javascript"></script> block

    <script type="text/javascript">
    alert("hello world");
  3. CSS
    Don’t forget to put in <style type="text/css"></style> block

    <style type="text/css">
     font-size: 100%;

Advanced Options

NameDescriptionScreen (Click to view)
LabelElement Label to be displayed to the end-user.

Auto populate saved value?Toggle to the auto-populate saved value
  • No labels