07-24-2013 02:01 PM - edited 07-24-2013 02:06 PM
Despite the following settings defined in the LAN Pick List Manager for our Custom Country picklist:
Text must match a list item
Users cannot edit items
The web version of the Country dropdown allows edits. I don't want free text entry, and want to force the user to choose one of the items in the dropdown list.
There's a control in the SmartParts Address folder called AddEditAddress, but even manually setting the picklist properties doesn't stop this text entry.
The location I am referring to is in Insert Account, Contact, and their respective details pages. Clicking on the pencil icon to edit opens the Address form I'm referring to; its here where the dropdown for Country is editable.
How can I achieve this? Where is the correct location of the ASCX file so I can modify it?
Solved! Go to Solution.
07-24-2013 03:16 PM
Have you tried the setting:
"Apply options to Web pick list"
In the Web Picklist manager under the Administration Nav section of the web client.
May not be there depending on your version of web.
Best, Brian
07-25-2013 04:50 AM
The Address Control and the Dialog are generated from the following Javascript:
Sage/UI/Controls/Address.js
I overrode the showDialog class, add a handler to the onLoad event of the "editDialog" and set the Country control to read only:
if (!this.editDialog) {
this.editDialog = new dialog({
title: this.resources.dialogTitle,
id: [this.id, '-Dialog'].join(''),
'class': 'address-edit',
onLoad: function () {dojo.byId('MainContent_AccountDetails_addrBusiness-country-Select').setAttribute('readOnly', true);}
});
07-25-2013 05:40 AM
Thank you, I didn't know this was in the Admin section!