My project involves an accordion that utilizes the datasource named Competency
. This specific datasource stores a list of core competencies for employees along with related metadata, such as descriptions. Within the Accordion's detail section, there is a panel that relies on the Comment
datasource. Users can input comments that will then be associated with the Competency
datasources through some unrelated logic.
Currently, I have a blank checkbox (check_box_outline_blank) in each Accordion Row. When a user enters text, I want the checkbox to automatically display a check mark (changing from check_box_outline_blank
to check_box
). The issue I'm facing is finding a way to select the checkbox programmatically.
An attempt using
widget.parent.parent.parent.parent.parent.parent.children.DetailAccordionRow.children.CompletionIcon.text = "check_box";
resulted in an error message:
Cannot read property 'children' of undefined
at CheckinSubmit.RootPanel.FormPanel.AccordionPanel.DetailAccordion.DetailAccordionDetail.AccordionDetialPanel.CommentFormPanel.CreateCommentForm.CreateCommentFormBody.Field.onValueEdit:1:78
Another approach involving
app.pages.CheckinSubmit.children.RootPanel.children.FormPanel.children.AccordionPanel.children.DetailAccordion.children.DetailAccordionRow.children.CompletionIcon.text = "check_box";
also led to an error:
Cannot read property 'children' of undefined
at CheckinSubmit.RootPanel.FormPanel.AccordionPanel.DetailAccordion.DetailAccordionDetail.AccordionDetialPanel.CommentFormPanel.CreateCommentForm.CreateCommentFormBody.Panel3.onValueEdit:1:140
These commands were inserted into the Submit button's onValueEdit trigger.
I've relied on AppMaker's auto-suggestions to generate these commands, but am struggling to find another way to select this item. For reference, here's a screenshot of the UI and its structure: https://i.sstatic.net/hFzzZ.png