diff --git a/entity/Address_entity/Address_entity.aod b/entity/Address_entity/Address_entity.aod index 1420961a65ff83f6d6c2c00e56263bbe1be92072..6a673e9aac4d858ba63d07b76b4105d4cb90a7e6 100644 --- a/entity/Address_entity/Address_entity.aod +++ b/entity/Address_entity/Address_entity.aod @@ -445,6 +445,7 @@ <mandatoryProcess>%aditoprj%/entity/Address_entity/entityfields/address_ws/mandatoryProcess.js</mandatoryProcess> <textInputAllowed v="true" /> <stateProcess>%aditoprj%/entity/Address_entity/entityfields/address_ws/stateProcess.js</stateProcess> + <titleProcess>%aditoprj%/entity/Address_entity/entityfields/address_ws/titleProcess.js</titleProcess> <valueProcess>%aditoprj%/entity/Address_entity/entityfields/address_ws/valueProcess.js</valueProcess> <displayValueProcess>%aditoprj%/entity/Address_entity/entityfields/address_ws/displayValueProcess.js</displayValueProcess> <onValueChange>%aditoprj%/entity/Address_entity/entityfields/address_ws/onValueChange.js</onValueChange> diff --git a/entity/Address_entity/entityfields/address_ws/titleProcess.js b/entity/Address_entity/entityfields/address_ws/titleProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..a4923c9cd04d58e2b46635653ad058c779ac8dac --- /dev/null +++ b/entity/Address_entity/entityfields/address_ws/titleProcess.js @@ -0,0 +1,10 @@ +import("system.result"); +import("system.vars"); +import("KeywordRegistry_basic"); +import("Keyword_lib"); + +var key = vars.get("$field.ADDR_TYPE"); +if (key == $KeywordRegistry.addressType$post()) +{ + result.string("Post office box number"); +} \ No newline at end of file diff --git a/process/KeywordRegistry_basic/process.js b/process/KeywordRegistry_basic/process.js index 1d937e5cd44537e202469b544d0cf9d8f8c1fdce..b17061f3aa65daa386e0e0735d07c850e0be8a89 100644 --- a/process/KeywordRegistry_basic/process.js +++ b/process/KeywordRegistry_basic/process.js @@ -107,6 +107,7 @@ $KeywordRegistry.activityCategory$visit = function(){return "VISIT";}; $KeywordRegistry.addressType = function(){return "AddressType";}; $KeywordRegistry.addressType$private = function(){return "HOMEADDR";}; $KeywordRegistry.addressType$office = function(){return "OFFICEADDR";}; +$KeywordRegistry.addressType$post = function(){return "POSTADDR";}; $KeywordRegistry.offerProbability = function(){return "OfferProbability";};