How to call value from other table using Javascript API

Confluence User - 03 Jul, 2019

Dear Experts,

 

var field = FormUtil.getField("field1");
$(field).val("test"); //set value
This Javascript API is what I've been using to call value in custom HTML using Javascript. But this only works when the value is in the same form. How to actually call data from other table in the database. I need to use this to check data existence in the other table.
forms;customhtml;javascript;value;validation;exist;table;database

1


03 Jul, 2019
confluenceUser
confluenceUser

Hi

You can use Joget hash variables to retrieve the value from another table/form, example below:

var field = "#form.tableName.fieldname[id_value_or_primary_key_value]#";
var field = "#form.tableName.fieldname[{requestParam.id}]#";
RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print