Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Since version 9.0

If you need to create/update/delete instances of CustomForm from any kind of logics, you can use Custom Form API.

Retrieve API object

api.customFormApi()   //❶

❶ returns CustomFormApi object

Create new Custom Form instance

def customForm = api.customFormApi().newCustomForm()
        .setLabel("my custom form 1")
        .setTypeId(1)   //❶
        .setUserGroupViewDetails("viewGroup")
        .setUserGroupEdit("groupEdit")
        .create()

❶ ID of the CustomFormType

Update existing Custom Form instance

api.customFormApi()
    .withId(customForm.id).updateData()
        .setLabel("after label")
        .setInputValue("input1000", 1001)
        .setAttributeValue("attribute1","attribute1")
        .doUpdate()
  • No labels