[Vtigercrm-developers] Fwd: Re: How to set a field Read-Only in EditView in vtiger 6.1?
Vic Cekvenich
vic.cvc at gmx.com
Sun Aug 17 22:02:17 GMT 2014
-------- Original Message --------
Subject: Re: [Vtigercrm-developers] How to set a field Read-Only in
EditView in vtiger 6.1?
Date: Tue, 22 Jul 2014 11:57:26 +0530
From: Rishab K <rishab.k at vtiger.com>
Reply-To: vtigercrm-developers at lists.vtigercrm.com
To: Istvan Holbok <holbok at gmail.com>,
vtigercrm-developers at lists.vtigercrm.com
Holbok,
I have created a trac
<http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8156> for this.Record
your views regarding this on the trac
<http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8156>.
On Tue, Jul 22, 2014 at 10:23 AM, Rishab K <rishab.k at vtiger.com
<mailto:rishab.k at vtiger.com>> wrote:
Holbok,
This code present around line 125,in editviewblocks.tpl is
reponsible for generating the respected fields based on types.
{include
file=vtemplate_path($FIELD_MODEL->getUITypeModel()->getTemplateName(),$MODULE)
BLOCK_FIELDS=$BLOCK_FIELDS}
Have you tried adding a .tpl for your custom module under
vtiger_root/layouts/vlayouts/custom_module_name/uitype/field_type/
For more information on uitypes look at
https://wiki.vtiger.com/index.php/UI_Types
On Tue, Jul 22, 2014 at 2:58 AM, Holbok István <holbok at gmail.com
<mailto:holbok at gmail.com>> wrote:
Dear Vtiger Community,
The field behaviors are regulated through different settings of
the vtiger field: uitype, readonly, presence, etc.
A field with uitype = 3 is a readonly field (independent from
the readonly settings) and will appear on the Record Detail View
page or in the Summary page if it was set.
But this field with uitype = 3 will not appear in the Editview.
I tried to set uitype = 1 and readonly = 0, but this settings
did not create a Read-Only field.
With uitype = 1 the field will appear in the Editview, but
unfortunately the field is editable, even the readonly is 0.
I need some real readonly fields in the Editview - for
information purposes - to show, but make them non-editable.
Is there any built in settings to do it?
Or need I to rewrite the .tpl file to handle this demand?
Kindest regards:
István
--
üdvözlettel:
*Holbok István*
+3670-342-0900
*e-mail:* holbok at gmail.com <mailto:holbok at gmail.com>
*SkyPe:* holboki
_______________________________________________
http://www.vtiger.com/
-------------- next part --------------
_______________________________________________
http://www.vtiger.com/
More information about the vtigercrm-developers
mailing list