93 views

Description

Unable to hide container using UI policy if mandatory variables within container are populated

Steps to Reproduce

 

  1. Create a catalog item with variable in the following order:

    • Mandatory? (type: checkbox)
    • Readonly? (type: checkbox)
    • Hide? (type: checkbox)
    • Additional Details (type: container start)
    • Explain (type: Single Line Text)
    • Container End
  2. Create a UI policy with the following values: 

    • Mandatory? checked --> Marks all variables in container as mandatory
    • Readonly? checked --> Marks all variables in container as readonly
    • Hide? checked --> Hides all variable in container
  3. Try this item.

  4. Check 'Mandatory?'.

    Observe that all variables within container are marked as mandatory.

  5. Populate mandatory variables.

  6. Check 'Hide?'.

    Note that instead of all variables being hidden along with the container, the variables still appear.

 

 

Workaround

Add the following code to the catalog client script to set mandatory variables to false before hiding a container. 

setMandatory('container_name', false); 


Related Problem: PRB728782

Seen In

There is no data to report.

Fixed In

Jakarta

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-04-23 16:24:57
Published:2018-03-23