Read only choice fields on catalog shows dropdown values.

Steps to Reproduce


Reproducible across Jakarta instances.

  1. Add a drop down variable to a catalog item
  2. Set the drop down variable to read-only using a UI policy
  3. Try the catalog item. You will be able to see the options in the drop down variable even if it is set as read-only.

Customer has applied the fix of PRB1156110 and it has fixed the issue on the rest of his instance. However catalog items variables are still affected.


In order for the workaround to work, the customer needs to have the fix from platform for PRB1156110. (JP5, KP0).

  1. Navigate to UI Macro > New
  2. Create a new Macro, disable_select_readonly_click
  3. Add the following code:

    <?xml version="1.0" encoding="utf-8" ?>
    <j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
    <g:requires position="last" inline="true" name="scripts/doctype/element_choice.js"/>

  4. Save the macro.
  5. Open the Macro catalog_item
  6. Scroll down and add the following line at the last, before </j:jelly>

    <g:inline template="disable_select_readonly_click.xml" />

  7. Save the macro

Related Problem: PRB1240968

Seen In

There is no data to report.

Fixed In

Jakarta Patch 7
Kingston Patch 1

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-05-21 11:35:27