Hi,
Can I add a checkbox (well I know I can add one) but when it is checked aother date field appears. I think I've read that this is possible by using the devtoolkit - has anyone done this before?
Rgds
Chris
Hi,
Can I add a checkbox (well I know I can add one) but when it is checked aother date field appears. I think I've read that this is possible by using the devtoolkit - has anyone done this before?
Rgds
Chris
Yes, DevToolKit can accomplish that request. Version 0.7 has the plugin Visible fields which toggle visibility of fields based on selected value from another field. It workfs for check box, text field and dropdowns.
Cheers
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
Hi,
Is this something that happens right away, so once the check box is ticked the datefield will appear? or is it after a save? I assume that it works for is implying that the field tyes about can be used to trigger it only and are not the only type of fields that can be set to visible?
Rgds
Chris
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
Hi Andres
I've no issue - I've never used you tool so I was just making sure that it would achieve what I required before I invest the time to get it working.
I'll report back if I run into any more trouble.
I also see that you can hide panel - I will be implementing this to allow users to create a Meeting from a Call. Again another Checkbox that when ticked will show a seperate panel that will ask for the time and dates of teh meeting and on save create a record.
Thanks
Chris
I've installed the DevToolKit.
I've configured a custom view.edit.php as per the manual. and I have a metadata file toggle_visible_fields.php but it is not wokring.
This is a file toggle_visible_fields.php in /custom/modules/<Module>/metadata/
In the custom view.edit.php I have the following.PHP Code:<?php
//if checkbox_field = 0 higde toggle field
$toggle_visible_fields.php = array(
'checkbox_field' => array(
'0' => array(
'field_to_toggle' => 0,
),
'1' => array(
'field_to_toggle' =>1,
),
),
);
?>
I can edit a record so the view is working, the toggle visible fields part is not workingPHP Code:private $manager; //this is after the Class is defined
function init($bean=null, $view_object_map=array())
{
parent::init($bean,$view_object_map);
require_once('custom/include/utils/DevToolKitManager.php');
$this->manager = new DevToolKitManager($this);
}
//I have this in my display function,
function display() {
$this->manager->display();
$this->ev->process();
// echo $this->ev->display();
//I am doing other stuff in my display here
//At the end I created the process function
function process() {
parent::process();
$this->manager->process();
}
Rgds
Chris
The variable name should be "$toggle_visible_fields" instead of "$toggle_visible_fields.php".
Cheers
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
Thats a typo on my behalf - I have it called toggle_visible_fields with no .php
Rgds
Chris
Last edited by chrislynch8; 2010-03-09 at 11:52 AM. Reason: Bump
Shameful Bump
Let me know the view.edit.php, editviewefs.php and toggle_visible_fields.php.
Cheers
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks