Hide 'Collect' based on item in XLS Form in Survey123?

444
2
08-28-2019 08:26 AM
TL2
by
Occasional Contributor III

I am currently hiding the Collect option based on Title of the form.  I would like to be able to hide the Collect based on coding in something else that I can later add to the form.  Is there something I can pull from the XLS form that the user doesn't see (or does) so I don't have to hard code titles.  

I would like to use match like below, but not title.  Can I grab 'form_id', 'summary' or even 'description'?

title.match(/Some Awesome form_id.*/)

Here is what I have:

SurveyInfoPage.qml

line 527

            enabled: if ( title == "Some Awesome Survey" 
                           {false
                        }
                           else
                         {true
                          }

Erwin Soekianto

0 Kudos
2 Replies
ErwinSoekianto
Esri Regular Contributor

Yes, all of that information can be retrieved via the surveyInfo object.  To see what are available, take a look at SurveyInfo.qml

0 Kudos
TL2
by
Occasional Contributor III

I'm not quite sure how SurveyInfoPage.qml references title object, therefor I cant seem to get the description to be referenced in SurveyInfoPage.qml

0 Kudos