See https://community.skuid.com/t/conditional-rendering-not-updating-ui-for-rows-created-a… for some background on this.
When a button in a page title in a drawer has conditional rendering applied, the conditional rendering is not being applied to the row in context during evaluation.
Steps to Reproduce:
- Create blank page
- Add Account model specifying “Load model data on page load” = false and “Create default row if Model has none” = false and including Name field
- Add Contact model specifying “Load model data on page load” = false and “Create default row if Model has none” = false and including Name, First Name and Last Name fields
- Add table for account including name field
- Add Drawer row action
- Inside of drawer add page title specifying context to accountid of row in context
- Add button to page title with run multiple actions and “create new row in contact”
- Add a button to page title with run multiple actions and “show message & block ui”. Set conditional rendering to the following:
- LastName != null
- Contact Model has data rows
- Inside of drawer add field editor specifying context to accountid of row in context and including Name, FirstName & LastName
- Preview page
- Click “+” to add new account row
- Expand newly created row using wand
- Click “Create Row” in page title within drawer
- Type a value in Last Name
Expected Result = Actual Result - “Show Message” button appears
- Remove value from Last Name
Expected Result = Actual Result - “Show Message” button disappears
- Click “+” to add a new account row
- Expand newly created row using wand
- Click “Create Row” in page title within drawer (from most recently added row)
- Type a value in Last Name of row from #18
Expected Result: “Show Message” button appears
Actual Result: “Show Message” does not appear
- Remove value from Last Name
- Type value in Last Name field of Contact from #13
Expected Result: Show Message appears in row from #13
Actual Result: Show message appears in row from #18 and does not appear on row from #13
Sample Page XML
{{Name}}
{{Model.labelPlural}}
Contact