Skip to content

Duplicate hidden fields on EditView #10077

Open
@topesantos

Description

@topesantos

Issue

When editing, besides the buttons on top and bottom of the page, there are hidden fields also duplicated.
And these fields have the same id. Browsers and javascript don't like fields with the same id.

Expected Behavior

Should be only hidden fields with unique id.

Actual Behavior

There are duplicated hidden fields.

Possible Fix

on
include\EditView\footer.tpl
comment this code

        <!-- to be used for id for buttons with custom code in def files -->
        {{if isset($form.hidden)}}
        {{foreach from=$form.hidden item=field}}
        {{$field}}
        {{/foreach}}
        {{/if}} 

Steps to Reproduce

  1. Open and Edit one module register
  2. See the source code near the buttons.

Context

I had difficulties accessing hidden fields with javascript

Your Environment

SuiteCRM 7.13.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: ModuleIssues & PRs related to modules that do not have specific labelPriority:ImportantIssues & PRs that are important; broken functions, errors - there are workaroundsStatus:Needs AssessedNeeds the core team to assessType:SuggestionIssue containing a suggestion of functionality, process or UI. Associated PRs are called enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions