<?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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Validation of invisible textbox</title><link>https://www.aras.com/community/f/development/3757/validation-of-invisible-textbox</link><description>I have a textbox which gets the value of the select option from a dropdownlist, the textbox is binded to a property of the ItemType which has the Required set to true.&amp;#160; So if no selection is made from the dropdownlist, it will trigger the validation for</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Validation of invisible textbox</title><link>https://www.aras.com/community/thread/1745?ContentTypeID=1</link><pubDate>Wed, 27 Jun 2018 01:16:22 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:633f2081-e86f-4a21-8dd3-34e059cdb648</guid><dc:creator>Former Member</dc:creator><description>Hi Chris,

Yes, it is done on the onChange event of a HTML object, see code below:

The validation behaviour doesn&amp;#39;t seem to be consistent. If I make the textbox from invisible back to visible, the required validation is still triggered, when there is a value in the textbox.

&amp;lt;select id=&amp;quot;team_list&amp;quot; onchange=&amp;#39;setTeamId()&amp;#39;&amp;gt;
&amp;lt;/select&amp;gt;
&amp;lt;script language=&amp;#39;Javascript&amp;#39;&amp;gt;
function setTeamId()
{
var select = document.getElementById(&amp;quot;team_list&amp;quot;);
var selectedString = select.options[select.selectedIndex].value;
var cTeamId= document.getElementsByName(&amp;quot;team_id&amp;quot;);
var c;
for (c = 0; c &amp;lt; cTeamId.length; c++) {
if (cTeamId[c].type == &amp;quot;text&amp;quot;) {
cTeamId[c].value = selectedString ;
}
}

}
&amp;lt;/script&amp;gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Validation of invisible textbox</title><link>https://www.aras.com/community/thread/1740?ContentTypeID=1</link><pubDate>Tue, 26 Jun 2018 10:15:50 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:15b4998a-46cf-4a90-8469-4ed607ca64cc</guid><dc:creator>Christopher Gillis</dc:creator><description>Hello,

How are you setting the value of the textbox from the dropdown? Is this being done from an onChange Field Event on the dropdown? If so, could you share the code that you are using to set the value of the textbox?

Chris

&lt;hr /&gt;

Christopher Gillis

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>