I've created my first Web AppBuilder app! I’m trying to require one or more fields to be updated when a text field is edited. I think that the Smart Editor widget may be the solution. I'm sorry to ask such a long question.
Data in this app comes from a Survey123 form that I created. The survey has about 20 main questions and another 30 or so questions within a repeating group. My Feature Layer (hosted) from the survey has one layer and one related table. Example survey results (at least one item in the repeating group is required):
The Attributes pane in the Web AppBuilder app has two tabs:
After the survey results come in, an administrator needs to review text fields to remove personal info or correct an error. There are three text fields that need reviewing:
I need a way to quickly review all of these text fields and update the status. At a minimum, I want to update the status with one record, like this:
ReviewStatus: 0=pendingReview, 1=changeIsNeeded, 2=deleted, 3=reviewComplete.
In general:
Ideally, I’d also like to indicate why the change was made:
PersonalInfo: 0=none, 1=removed.
Error: 0=none, 1=corrected.
And if an item or record was deleted (marked deleted, not actually deleted):
ItemDeleted: NUM1,NUM2 (comma separated list of items deleted).
RecordDeleted: 0=notDeleted, 1=enteredByAccident, etc.
Is there a way to accomplish everything I’m trying to do? When editing a text field, I want to require other field(s) to be updated. Is the Smart Editor widget the solution? I’ve read the documentation but, still haven’t been able to set it up. I’m new to building Web AppBuilder apps.
Thank you,
Chuck
Solved! Go to Solution.
I was able to answer my own question. For what I needed, the Smart Editor widget was pretty straightforward to use. One simple thing that I initially did not understand was that the widget acts on the current selection. This was clearly a novice mistake, but I wish that there could be some indication that I needed to make a selection. With no selection, the in the Smart Editor widget says, "Select a template to create features." I assume that message makes sense to experienced users. Thanks.
I was able to answer my own question. For what I needed, the Smart Editor widget was pretty straightforward to use. One simple thing that I initially did not understand was that the widget acts on the current selection. This was clearly a novice mistake, but I wish that there could be some indication that I needed to make a selection. With no selection, the in the Smart Editor widget says, "Select a template to create features." I assume that message makes sense to experienced users. Thanks.
Hi Soper, Chuck,
The "Select a template to create features." text can be modified at the bottom of the configuration window in General Settings. You should be able to write something more specific to your workflow there.