Default Value
General
Reference value as a regular field (such field should be ready only)
Status
Release Available |
Status |
Framework Name |
---|---|---|
Initial |
Current |
TBC |
Code JSON
{"fieldName": "genesis__Application__r.genesis__CL_Product__r.clcommon__Product_Name__c", "fieldUi": { "fieldType": "string", "label": "Product Name",... },...}
Default Value
General
Reference value as an array of reference objects (such field should be editable as reference picklist)
Status
Release Available |
Status |
Framework Name |
---|---|---|
Initial |
Current |
Mint |
Code JSON
{"fieldName": "Party_Type__c", "relationType": "reference", "relationName": "Party_Type__r", "relationJson": actual JSON embedded, "fieldUi": { "fieldType": "reference", "label": "Party Type",...
Refer to another component JSON file to form the reference picklist
In an editable view, the reference field loads its values from the backend in real-time.
Status
Release Available |
Status |
Framework Name |
---|---|---|
Initial |
Current |
TBC |
Code JSON
{ "fieldName": "Party_Type__c", "relationType": "reference", "relationName": "Party_Type__r", "relationJson": "portal2demo_party_type_reference", "fieldUi": { "fieldType": "reference", "label": "Party Type", "defaultValue": "BORROWER", "messages": { "referenceLoadingText": "Loading party type...", "referenceErrorText": "No party type available", "requiredErrorText": "..." "regexErrorText": "..." }
Reference values can be conditionally fetched by specifying its whereClause
.
Status
Release Available |
Status |
Framework Name |
---|---|---|
2.10 |
Current |
TBC |
Property
"property": { "referenceWhereClause": { "Account": { "industry": "$this.attr(Account.Industry);" } }, "whereClause": { "contactId": "003f400000ekVXXAA2" } }
Action
{ "fieldName": "Account.Industry", "fieldUi": { "fieldType": "picklist", "selectOptions": [...], ... } }, { "relationType": "reference", "fieldName": "AccountId", "relationName": "Account", "relationJson": { "tableName": "Account", "whereClause": { "freeForm": "industry = ':industry'" }, ... }}
The reference field can set the default value. The default value (defaultValue
) is the visible text instead of the record Id
.
Status
Release Available |
Status |
Framework Name |
---|---|---|
2.10 |
Current |
TBC |
Code JSON
{ "relationType": "reference", "fieldName": "AccountId", "relationName": "Account", "relationJson": {...} "fieldUi": { "fieldType": "reference", "defaultValue": "Q2 eBanking" } }