#753 - Unable to get the masks working
Hi, I try to enable the phone/fax fields in the Accounts module with different masks. After saving my masks I can find the dependency-php-files in the Accounts module, but I can still enter whatever I want into the fields. I've cleared my browser cache completely to avoid any problems from there, no change. What could be the problem ? Where can I have a look to get this working ?
Best Regards, Norbert
10 years ago
Hi Norbert,
First of all sorry for the delay about our response.
Could you provide us the mask that you try to set up on your field ?
A common mistake is to miss to execute followed Repair after the installation in this order: * Click on “Rebuild JS Grouping Files” * Click on “Quick Repair and Rebuild” * Click on “Rebuild Sugar Logic Functions”
Best regards,
10 years ago
Hi,
thanks for this hints. I've done the three Repairs in that order. Unfortunately there is no change in the behaviour. Here is a copy of the deps.ext.php in accounts where you can see the masks I've tried.
<?php // WARNING: The contents of this file are auto-generated.
//Merged from custom/Extension/modules/Accounts/Ext/Dependencies/SynoFieldMask_phone_office.php
$dependencies["Accounts"]["phone_office_synofieldmask"] = array ( 'hooks' => array ( 0 => 'edit', ), 'trigger' => 'true', 'triggerFields' => array ( 0 => 'phone_office', ), 'onload' => true, 'actions' => array ( 0 => array ( 'name' => 'SetSynoFieldMask', 'params' => array ( 'target' => 'phone_office', 'label' => 'phone_office_label', 'value' => array ( 'mask' => '+99[9[9]]9999[9[9[9]]]', 'greedy' => false, ), ), ), ), );
//Merged from custom/Extension/modules/Accounts/Ext/Dependencies/SynoFieldMask_phone_fax.php
$dependencies["Accounts"]["phone_fax_synofieldmask"] = array ( 'hooks' => array ( 0 => 'edit', ), 'trigger' => 'true', 'triggerFields' => array ( 0 => 'phone_fax', ), 'onload' => true, 'actions' => array ( 0 => array ( 'name' => 'SetSynoFieldMask', 'params' => array ( 'target' => 'phone_fax', 'label' => 'phone_fax_label', 'value' => array ( 'mask' => '+99[9[9]]9999[9[9[9]]]', 'greedy' => false, ), ), ), ), );
//Merged from custom/Extension/modules/Accounts/Ext/Dependencies/SynoFieldMask_phone_alternate.php
$dependencies["Accounts"]["phone_alternate_synofieldmask"] = array ( 'hooks' => array ( 0 => 'edit', ), 'trigger' => 'true', 'triggerFields' => array ( 0 => 'phone_alternate', ), 'onload' => true, 'actions' => array ( 0 => array ( 'name' => 'SetSynoFieldMask', 'params' => array ( 'target' => 'phone_alternate', 'label' => 'phone_alternate_label', 'value' => array ( 'mask' => '+99(9999)999999', 'greedy' => false, ), ), ), ), );
Best regards, Norbert
10 years ago
Hi,
sorry, new result. After resetting browser cache it now works after executing the 3 repairs. I can now start testing.
Thanks for your help.
Best regards, Norbert
10 years ago
But you should update the installation documentation on this website, I only find that one should do the quick repair, not this 3 different steps.
10 years ago
Hello Norbert,
Thank for your reply, all steps are mention on the PDF version of the full documentation guide which is more consistent that the online documentation.
Best regards,