page properties - link input field not displayed

Description

When there is a linktype dropdown and an related URL input within the page properties the URL input is hidden on first load.
Only after selecting the link type (again or another one) the URL input becomes visible.

I fixed this by adding showHide.js (..wcm-io-handler/link/src/main/webapp/app-root/clientlibs/authoring/dialog/js/showHide.js) with following code:

See pull request:

This is adpated from/ based on https://gist.github.com/rjspiker/003cf9eac1e853bb109a .
Concerns component /apps/wcm-io/handler/link/components/granite/form/linkRefContainer/linkRefContainer.jsp

Activity

Show:
M. Ceruti
October 7, 2020, 3:01 PM

Thank you very much. We’ve recently switched to 6.5.6/1.0 and the problem is indeed not reproducible anymore. It was present in 6.5.2. You can therefore close this issue.

Stefan Seifert
October 7, 2020, 1:02 PM

which AEM version / service pack level are you using?
what we are using here to display the further fields depending on the selected link type is an OOTB AEM feature.

i can reproduce the issues in the page properties dialog with older versions of AEM, but they seem to be fixed in recent versions/service packs. after my tests it's running fine in:

  • AEM 6.4 SP8 CFP2 (6.4.8.2)

  • AEM 6.5 SP6 (6.5.6)

  • AEM Cloud Service

so my current recommendation is: please install the most recent service pack and try if it solves your problem.

including a fix like that from the PR may get in conflict with latest versions of the scripts included OOTB.

Daniela Maul
September 16, 2020, 6:16 AM

Pull request added:

Done

Assignee

Unassigned

Reporter

Daniela Maul

Labels

None

Components

Priority

Minor