Select to view content in your preferred language

upgrade to Connect 3.18 breaks javascript function Position(..)

492
1
Jump to solution
10-24-2023 08:24 PM
AKitch
by
Regular Contributor

Hi

I've just upgraded my Survey123 Connect app from 3.15 to 3.18. In doing so a lot of my Javascript functions sourcing repeat variables and the position are not working. It seems now the Position(..) function is passing an object instead of a number. I tested by passing the position directly back to a text field and get "[object Object]". The function I used was simply:

function getPosition(pos){ return pos; }

referenced by:

pulldata("@javascript", "survey_func.js", "getPosition", ${shot_repeat}, position(..))

Is there a new way of using Position(..) in Connect 3.18? I'm only building mobile surveys so not worried about web forms.

Cheers

 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AKitch
by
Regular Contributor

Looks like this problem has arisen due to bad column/grid specifications in the apperance column of the XLSForm.

View solution in original post

0 Kudos
1 Reply
AKitch
by
Regular Contributor

Looks like this problem has arisen due to bad column/grid specifications in the apperance column of the XLSForm.

0 Kudos