Provisioning form field scripts cannot access the plan variable — how to auto-determine target database from entitlement's source_db

We have a MSSQL JDBC application spanning multiple databases (master, model, msdb). We wanted a target_database dropdown in the provisioning form to show only databases where the requested entitlement exists.

WHAT WE TRIED & THE ERRORS

  1. Accessing “plan” in form field script → Error: “plan” is undefined in Formicator context
  2. form.getField(“role_name”).getValue() → Returns null in LCM flow (entitlement is in the plan, not the form)
  3. → DTD parse error: “dependsOn” not declared for Field element
  4. → DTD parse error: “helpText” not declared for Field element

@uditsahntl01 You should have project object available in the rule. from it you can get the plan and make use of it.