by synolia

Field Mask will be your greatest ally in formatting your SugarCRM data. This module improves the reliability of your data and saves time for your whole team by allowing you to use input templates to your information fields (zip code, phone number, etc.).

Free 30 day trial
Try it Now

By clicking you consent to share your profile with the developer

#753 - Unable to get the masks working

Closed Installation created by norbertgroene Verified Purchase 9 years ago

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

  1. synolia-primary-contact member avatar

    synolia Verified Purchase

    9 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,

  2. norbertgroene member avatar

    norbertgroene Verified Purchase

    9 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

  3. norbertgroene member avatar

    norbertgroene Verified Purchase

    9 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

    • norbertgroene member avatar

      norbertgroene Verified Purchase

      9 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.

    • synolia-primary-contact member avatar

      synolia Verified Purchase

      9 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,

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
Rating
  • "Really easy to install and was able to enforce phone fields that include extensions. Support is very responsive." - tlemotte

    Read More Reviews