formio / ngFormio

JSON powered form rendering library for AngularJS + Form.io.
http://formio.github.io/ngFormio/
MIT License
99 stars 99 forks source link

Advanced Condition Does not work inside table. #664

Closed Morshed0308 closed 4 years ago

Morshed0308 commented 4 years ago

I have made a form where I used a Table inside of a Datagrid. I have added a html component under a select component and added advanced logic that it will show upon a special value selected in a select component. But it is not working . How can I do this inside a table . @travist @randallknutson

jeriah-formio commented 4 years ago

@Morshed0308 When triggering logic inside a data grid or edit grid, you need to use the 'row' variable instead of 'data'.

Here's example javascript code to display html component based on the value of a select component inside a datagrid.

show = row.select === 'test';

('select' being the API key of the Select component and 'test' being the value from the select that will trigger the logic)

Morshed0308 commented 4 years ago

It did not work.Html element shows now all time. This is the select component Select Component This is the advanced condition of Html Element @jhen1422 Note: This is a wizard