1
0
-1

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.
    CommentAdd your comment...

    1 answer

    1.  
      2
      1
      0

      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}]#";
        CommentAdd your comment...