use ['params']['targetDisplayType'] of display logic for setting targetDisplay
handle the case where there are multiple display logics in terms of deciding targetDisplay value for field.display eventually.
Motivation and Context
Currently, "field.display" value is always set to 'none' if any of display mode logic holds(or 'active') no matter what is set in 'targetDisplayType' for the display mode logic.
Also, it does not handle a scenario where there are multiple display mode logics for a field.
How To Test This
Try setting multiple displayLogics for any field as follows:
Test whether a field is shown correctly in the page according to the display type set in displayLogics
For example, in the above case, 'status' field should be shown when 'title' field value is 'Converted' and should be hidden when 'title' field value is 'Dead'
Types of changes
[ x ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Final checklist
[ x ] My code follows the code style of this project found here.
[ ] My change requires a change to the documentation.
Description
This PR will close #563
Motivation and Context
Currently, "field.display" value is always set to 'none' if any of display mode logic holds(or 'active') no matter what is set in 'targetDisplayType' for the display mode logic. Also, it does not handle a scenario where there are multiple display mode logics for a field.
How To Test This
Types of changes
Final checklist