Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
Copper Super Contributor
Posts: 172
Registered: ‎07-06-2010
Accepted Solution

Preventing Text Entry in Country dropdown on Address form

[ Edited ]

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? 

Highlighted
Copper Contributor
Posts: 12
Registered: ‎04-01-2009

Re: Preventing Text Entry in Country dropdown on Address form

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

Bronze Super Contributor
Posts: 129
Registered: ‎06-09-2009

Re: Preventing Text Entry in Country dropdown on Address form

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);}
});

 

Raul A. Chavez
http://raul.chavez.com
http://www.crmbi.com
Copper Super Contributor
Posts: 172
Registered: ‎07-06-2010

Re: Preventing Text Entry in Country dropdown on Address form

Thank you, I didn't know this was in the Admin section!