Last active
May 4, 2018 07:00
-
-
Save kadzany/c63c0171e93e5c684bcd706abefdd3b8 to your computer and use it in GitHub Desktop.
Update dari form.json sebelumnya
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"key": "userProfile", | |
"translationKey": "%WMS.Inbound.ASN.userProfile.formTitle%", | |
"formType" : "generated", | |
"menuId": "WM-01", | |
"roles": [ | |
"SysAdmin", | |
"Managers", | |
"Users" | |
], | |
"fields": [ | |
{ | |
"order": 0, | |
"key": "userId", | |
"inputType": "hidden", | |
"inputSettings": {} | |
}, | |
{ | |
"order": 1, | |
"key": "firstName", | |
"translationKey": "%WMS.Inbound.ASN.userProfile.firstName%", | |
"roleActionKey": "WM-000012", | |
"importance": "high", | |
"inputType": "textbox", | |
"inputSettings": { | |
"required": true, | |
"minLength": "2", | |
"maxLength": "15" | |
} | |
}, | |
{ | |
"order": 2, | |
"key": "dateOfBirth", | |
"translationKey": "%WMS.Inbound.ASN.userProfile.dateOfBirth%", | |
"roleActionKey": "WM-000012", | |
"importance": "standart", | |
"inputType": "datepicker", | |
"inputSettings": { | |
"required": true, | |
"maxDate": "today" | |
} | |
}, | |
{ | |
"order": 3, | |
"key": "hasIdCard", | |
"translationKey": "%WMS.Inbound.ASN.userProfile.hasIdCard%", | |
"roleActionKey": "editField", | |
"importance": "standart", | |
"inputType": "checkbox", | |
"inputSettings": { | |
"required": true | |
} | |
}, | |
{ | |
"order": 4, | |
"key": "addressDistrict", | |
"translationKey": "%WMS.Inbound.ASN.userProfile.addressDistrict%", | |
"roleActionKey": "WM-000012", | |
"importance": "standart", | |
"inputType": "combobox", | |
"inputSettings": { | |
"required": false, | |
"dataSourceUrl": "/relative-path/to/api/getting-data/endpoint", | |
"defaultValue": "" | |
} | |
} | |
], | |
"buttons": [ | |
{ | |
"order": 0, | |
"key": "saveData", | |
"translationKey": "%WMS.Inbound.ASN.userProfile.saveData%", | |
"roleActionKey": "WM-000013", | |
"inputType": "saveButton", | |
"inputSettings": { | |
"apiEndpointUrl": "/relative-path/to/api/save-data/endpoint" | |
} | |
}, | |
{ | |
"order": 1, | |
"key": "cancel", | |
"translationKey": "%WMS.Inbound.ASN.userProfile.cancel%", | |
"roleActionKey": "WM-000014", | |
"inputType": "cancelButton", | |
"inputSettings": {} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment