/pcf-form-json

Power Apps Control Framework to show JSON value as a Form.

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

PCF Form Json

A PCF Component that receives a predefined JSON format string and displays it as a Bootstrap Form. Then, Users can interact with the form and can save the value as a JSON format value.

PCF Form Json

Sample JSON Form string

{
    "controls": [{
            "name": "name",
            "label": "Name",
            "type": "string"
        },
        {
            "name": "total",
            "label": "Total Amount",
            "type": "number"
        },
        {
            "name": "active",
            "label": "Active",
            "type": "boolean"
        },
        {
            "name": "account",
            "label": "Account",
            "type": "lookup"
        }
    ],
    "lookupMetadata": {
        "account": {
            "allowMultiSelect": true,
            "defaultEntityType": "account",
            "defaultViewId": "",
            "entityTypes": ["account", "contact"],
            "viewIds": []
        }
    }
}

Supported data types:

  • String with type: 'string'
  • Lookup with type: 'lookup'
  • Number with type: 'number'
  • Boolean with type: 'boolean'

Sample JSON Result

{
    "name": "Temmy Wahyu Raharjo",
    "total": 1000,
    "active": true,
    "account": [{
        "id": "96EF3EA2-2B77-E511-80DB-00155DFD1F02",
        "etn": "account",
        "name": "Temmy Wahyu Raharjo"
    }]
}