by AppJetty

If you are a SuiteCRM owner, you can provide users with field-level access in your CRM through SuiteCRM Field Level Access Control. Our plugin enables the admin to display only relevant field data to users who have been assigned roles.

Includes a 30 day guarantee
Try it Now

#2430 - Plugin has moved all "Required Field" asterisks (*) underneath the field names in EditView

Closed Bug? created by jm2 Verified Purchase 4 years ago

After installing the plugin asterisks that denote a required field on the EditView have moved over top of the field name, instead of beside.

Untitled.png

  1. jm2 member avatar

    jm2 Verified Purchase

    4 years ago

    I've managed to fix this. I've included my solution.

    custom/themes/tab_panel/tab_panel_content_edit.tpl compared to themes/SuiteP/include/EditView/tab_panel_content.tpl

    Missing {minify} encapsulating the block that generates the required asterisk, therefore it was leaving an extra line break.

    Line 205 custom/themes/tab_panel/tab_panel_content_edit.tpl add {minify} Line 233 add {/minify} before

                            {*label*}
                            {minify}
                            {{if isset($colData.field.customLabel)}}
                            <label for="{{$fields[$colData.field.name].name}}">{{$colData.field.customLabel}}</label>
                            {{elseif isset($colData.field.label)}}
                        {capture name="label" assign="label"}{sugar_translate label=&#039;{{$colData.field.label}}&#039; module=&#039;{{$module}}&#039;}{/capture}
                        {$label|strip_semicolon}:
                        {{elseif isset($fields[$colData.field.name])}}
                    {capture name="label" assign="label"}{sugar_translate label=&#039;{{$fields[$colData.field.name].vname}}&#039; module=&#039;{{$module}}&#039;}{/capture}
                    {$label|strip_semicolon}:
                    {{else}}
                     
                    {{/if}}
                    {* Show the required symbol if field is required, but override not set.  Or show if override is set *}
                    {{if ($fields[$colData.field.name].required && (!isset($colData.field.displayParams.required) || $colData.field.displayParams.required)) || (isset($colData.field.displayParams.required) && $colData.field.displayParams.required)}}
                    <span class="required test">{{$APP.LBL_REQUIRED_SYMBOL}}</span>
                    {{/if}}
                    {{if isset($colData.field.popupHelp) || isset($fields[$colData.field.name]) && isset($fields[$colData.field.name].popupHelp) }}
                    {{if isset($colData.field.popupHelp)}}
                    {{capture name="popupText" assign="popupText"}}
                    {sugar_translate label="{$colData.field.popupHelp}" module=&#039;{{$module}}&#039;}
                    {{/capture}}
                    {{elseif isset($fields[$colData.field.name].popupHelp)}}
                    {capture name="popupText" assign="popupText"}
                        {sugar_translate label="{{$fields[$colData.field.name].popupHelp}}" module=&#039;{{$module}}&#039;}
                    {/capture}
                    {{/if}}
                    {sugar_help text=$popupText WIDTH=-1}
                    {{/if}}
                    {/minify}
                </div>
    
  2. Biztech member avatar

    AppJetty Provider Affiliate

    4 years ago

    Hello Dear,

    Thanks for contacting us!

    We're glad to read that you have managed to resolve the issue.

    Please feel free to email us at "support@appjetty.com" in case of any concern. We would be happy to assist you.

    Have a great day ahead!

    Kind Regards, Appjetty

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
  • "this tool is more than great easy to use , it met all my requirements so I can decide what users can access and what they cannot access and more than..." - mmaamar

    Read More Reviews