Versions Compared

Key

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

...

Code Block
languagejava
import org.joget.apps.app.model.AppDefinition;
import org.joget.apps.app.service.AppUtil;
import org.joget.apps.generator.service.GeneratorUtil;


String formId = "crm_account";
AppDefinition appDef = AppUtil.getCurrentAppDefinition();
 
String content = "This is a test string for form [formId] in app [appName]";
 
//Change the syntax to form meta
content = GeneratorUtil.populateFormMeta(content, formId, appDef);

...