saltcorn
saltcorn copied to clipboard
Button in feed items not correctly working
- Create an "Edit" view and add an "Action" button with action type of "run_js_code". For the code, enter:
console.log( id );
console.log( row.id );
- Create a "Feed" view and associated with the view from # 1.
- Enter some data into the table associated with the form in # 1.
- View the "Feed" view from # 2
- Click on any of the buttons and look at the console log. You will notice that the id's outputted in the console is always the last row in the feed list. Never from the row that was clicked on.
Expected behavior is that the ID of the row containing the button that was clicked on would be outputted in the console log.