<?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>Disable a Relationship tab</title><link>https://www.aras.com/community/f/development/7871/disable-a-relationship-tab</link><description>Hello Team, 
 I need to disable a relationship tab as the User selects a option button on the form. 
 Detailed Info: I have a option button on a form. Once the user selects this option, a tab from relationship below should be disabled. I am trying to</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Disable a Relationship tab</title><link>https://www.aras.com/community/thread/4179?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2020 09:25:29 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:27e8f3bc-9891-49bb-96f0-22efbe052818</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Hi Mithun,&lt;/p&gt;
&lt;p&gt;that&amp;acute;s an interesting use case. I assume you need a combination of the onFormPopulate Method with an onChange/onClick Method.&lt;/p&gt;
&lt;p&gt;I made a very quick&amp;amp;dirty test to disable a tab on button click:&lt;/p&gt;
&lt;p&gt;var rel_dom = parent.relationships.document;&lt;br /&gt;var relId = &amp;quot;6B5481B4B83A48CBA0C958ECD5407B12&amp;quot;; // id of RelationshipType&lt;br /&gt;var style = &amp;quot;display: none;&amp;quot;;&lt;br /&gt;var tab = rel_dom.querySelector(&amp;#39;li[data-id="' + relId + '"]&amp;#39;);&lt;/p&gt;
&lt;p&gt;tab.setAttribute(&amp;quot;style&amp;quot;, style);&lt;/p&gt;
&lt;p&gt;// todo: select another tab if disabled tab is active.&lt;/p&gt;
&lt;p&gt;return;&lt;/p&gt;
&lt;p&gt;This one just disabled the tab. But the tab content itself of course still will be visible when users already selected the tab. But I assume it should be possible to automatically switch to another tab. Would be cool if you could share your results!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>