<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Ben Desmarais さんの グループ アクティビティ</title><link>https://www.aras.com/community/members/ben_2d00_desmarais</link><description>Ben Desmarais さんの グループ ユーザーの最近のアクティビティ</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>Disabeling dropdown field on form</title><link>https://www.aras.com/community/f/development/3155/disabeling-dropdown-field-on-form</link><pubDate>Thu, 09 Feb 2017 15:49:31 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:78158999-9bd6-424e-b8b7-56f4b0ab436f</guid><dc:creator>Former Member</dc:creator><description>Hi

I have some strange behaviour on a form. I have added a JaveScript method to disable some fields if the property &amp;quot;kam_is_transferred&amp;quot; = 1. The strange thing is the code below works on text fields but it doesn&amp;#39;t seem to work on dropdown fields. Is the procedure different for drop down fields?

&amp;nbsp;

//Set Part form item_number field properties based on kam_is_transferred field value.
// Called onLoad from Part Add and Part Default forms.

// Sets form properties.
//----------------------------------------------------------

var thisItem = document.thisItem;
var istransferred = thisItem.getProperty(&amp;quot;kam_is_transferred&amp;quot;);
var itemnumber= document.fieldsTab["item_number"].substring(0, 32);
var name= document.fieldsTab["name"].substring(0, 32);
var kam_ksup= document.fieldsTab["kam_ksup"].substring(0, 32);
//disables enables Part Number field based on checkbox.

//kam_is_transferred = 1
if (istransferred==&amp;quot;1&amp;quot;){

document.getElementById(itemnumber).disabled= true;
document.getElementById(name).disabled= true;
document.getElementById(kam_ksup).disabled= true;
}
// IR-041257 - 04/20/2016
var cbc = parent.dijit.byId(&amp;quot;CenterBorderContainer&amp;quot;);
cbc.layout();
// end of fix

&amp;nbsp;

Thanks in advance

Henrik Olesen
Kamstrup A/S
Denmark&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>