remove form array index in URL

I am successfully creating multiple forms on a single page using the repeat group functionality.

After a form is submitted, AWS updates the URL to add the form index. How can I stop the AWS from adding the form index to the URL? Or, how can I limit it to one index? I don’t need the index functionality and it looks terrible on multiple submits in the URL.

For example:
Fresh page view: http://192.168.0.2/index.htm
Press submit once: http://192.168.0.2//index.htm?1
Press submit twice: http://192.168.0.2//index.htm?1,2

Alright, I figured out the answer. Calling the RpPopQueryIndex() function removes the index from the URL.

Where exactly did you put this?

I called RpPopQueryIndex() at the beginning of the function specified by RpFunctionPtr for the form.