hai every one..
How to validate quick create form in sub-panel while i click "save" button in the form..
also how to overrides the "save" button functionality in quickcreatedefs.php in (custom/modules/<module_name>/metadata/)
please help me ...
hai every one..
How to validate quick create form in sub-panel while i click "save" button in the form..
also how to overrides the "save" button functionality in quickcreatedefs.php in (custom/modules/<module_name>/metadata/)
please help me ...
HI karlee
You can just add the buttons element into quickcreate defs to override the Save button.
Have a look on modules/Leads/metadata/detailviewdefs.php as an example.
Cheer
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.
Thanks andopes..
Related modules is the sub-panel of Quotes module. Already they have relationship between Quotes and Related module. When i clicks "create" button in Related sub-panel, then opens Related Quickcreate form on the same sub-panel. When i clicks "save" button in the form. i need to validate the text field..
Hello
I want to do the same thing but I can't get it to work. I've overriden the Save button with some custom code in my editviewdefs.php but it's almost like it skips the form->buttons section for the QuickCreateForm? The buttons I add or remove here has no impact what so ever. But the fields and stuff I modify in quickcreatedefs.php changes the layout of the form.
Is there any known problem with this?
Works (editviewdefs.php):
Don't work (quickcreatedefs.php):PHP Code:$viewdefs ['Opportunities'] =
array (
'EditView' =>
array (
'templateMeta' =>
array (
'form' =>
array (
'buttons' =>
array (
0 => array(
'customCode' =>
'<input id="save_opportunity" type="submit" value="'.$GLOBALS['app_strings']['LBL_SAVE_BUTTON_LABEL'].'" name="button" onclick="this.form.action.value=\'Save\'; return (check_account(\''.$GLOBALS['mod_strings']['LBL_ACCOUNT_ERROR'].'\') && check_form(\'EditView\'));" class="button" accesskey="S" title="Save [Alt+S]"/> '
),
1 => 'CANCEL',
),
),
PHP Code:$viewdefs = array (
'Opportunities' =>
array (
'QuickCreate' =>
array (
'templateMeta' =>
array (
'form' => array (
'buttons' => array (
0 => array(
'customCode' =>
'<input id="save_opportunity" type="submit" value="'.$GLOBALS['app_strings']['LBL_SAVE_BUTTON_LABEL'].'" name="button" onclick="this.form.action.value=\'Save\'; return (check_account(\''.$GLOBALS['mod_strings']['LBL_ACCOUNT_ERROR'].'\') && check_form(\'QuickCreate\'));" class="button" accesskey="S" title="Save [Alt+S]"/> '
),
1 => 'CANCEL',
),
),
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks