I need to do the same, I think we have to do this using jQuery and "disable" attribute.<span></span><br><br>Le mardi 20 janvier 2015, Alan Lord (News) <<a href="mailto:alanslists@gmail.com">alanslists@gmail.com</a>> a écrit :<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 16/01/15 12:51, Alan Lord (News) wrote:<br>
...<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
To recap, I want to be able to make a bunch of fields (in Accounts, but<br>
that's not important) read-only based on the value of another field in<br>
the record (a Picklist value as it happens). So this is record level<br>
control not module level or user level.<br>
<br>
Looking at the code, I can see I can override the isEditable() function<br>
in the Field model to return false for a given field id.<br>
<br>
But to get the information regarding the current record's value (that<br>
will determine if it should be read-only or not) into the Field model<br>
for checking, it looks like I need to pass it into the Block model first<br>
via the getFields() function which is called from the {Detail or Edit}<br>
Record Structure models...<br>
<br>
Is there an easier, or more straightforward mechanism to get the<br>
*current* record model (or even just a bool value) straight into the<br>
Field Model?<br>
</blockquote>
<br>
Anyone?<br>
<br>
Thanks<br>
<br>
Al<br>
<br>
-- <br>
Libertus Solutions<br>
<a href="http://www.libertus.co.uk" target="_blank">http://www.libertus.co.uk</a><br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote><br><br>-- <br><div dir="ltr"><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.727272033691406px;background-color:rgb(255,255,255)"><div><br></div><div>Cordialement,</div><div><br></div><div><div><font color="#666666">Jonathan SARDO</font></div><div></div><div style="color:rgb(136,136,136)"><img src="cid:ii_13df029e6cb01b67" alt="Images intégrées 5"><br></div><div style="color:rgb(136,136,136)"><span style="color:rgb(0,0,0);font-family:arial;font-size:small">Tél. <a value="+33699455047" style="color:rgb(17,85,204)">06 99 45 50 47</a></span></div></div></div></div><br>