formio.js icon indicating copy to clipboard operation
formio.js copied to clipboard

In grid if we set the required property true/false  of any control dynamically based on logic then asterix (*) sign does not come when required is true [BUG]

Open pardeep224 opened this issue 7 years ago • 2 comments

Environment

Please provide as many details as you can:

  • Hosting type
    • [ ] Local deployment
      • Version: 4.2.6
  • Formio.js version: 4.2.6
  • Frontend framework: Angular-Formio
  • Browser: Google Chrome
  • Browser version: 77.0.3865.90 (Official Build) (64-bit)

Steps to Reproduce

  1. Take a Text Field component on the form.
  2. Take a Data Grid component on the form.
  3. Take a Select component within Data Grid and bind some values in this components by calling an API or hard coded.
  4. Take a Text Field component within Data Grid. Create a logic to make this field mandatory on the basis of value selection of Select component. Set property required of Text Box field in logic.
  5. Run the form.

Expected behavior: When value selection is changed of Select component then Text Box Field should become mandatory and asterisk (*) in red color should be shown.

Observed behavior: Text Box field within Data Grid becomes mandatory but asterisk (*) is not coming on Text Field.

Example

NA

pardeep224 avatar Oct 07 '19 07:10 pardeep224

@pardeep224 Thank you for the report. We were able to replicate this issue on our end as well and have created a ticket in our 4x branch. We will review during our planning meeting next week. Please note, we welcome pull requests in this library. If you need this item expedited, please feel free to contact [email protected] for pricing.

jeriah-formio avatar Oct 07 '19 14:10 jeriah-formio

Hello @pardeep224,

This issue has been resolved. You can use the latest version of formio.js to test 4.11.2.

wag110894 avatar Aug 20 '20 15:08 wag110894