Further to my Re: JS script for dummy! post, which pulled data from the feature service layer to return a Max value using JS script kindly helped by Ismael. While this serves for a single batch of survey data. I am hoping to use the the same survey and hosted layer to collect the same data at several different site locations (a choice question, rather than geopoint). Thus I have now realised that i need to filter the attribute Max value based on another field selected on the form (such as place name).
Is it possible to use the previous JS script to help provide a Max value based on a selection from a previous question (place name) response on the survey form? If so how would this be done?
Update - I am also wondering about JavasScript to potentially return the 'latest' submitted value of a field from a feature layer? So this would cross reference submission date/time I suppose.
Whilst I have embarked on an online JavaScript course from Codecademy I do feel it will take some time to get to the proficiency to understand how to write code to achieve this. Any pointers would help tremendously.
Best Regards Chris