Thank you @mvveiga .
Okay so the error message coming up now is:
" TypeError: o.birthDate is not a function
at by75g.js:380 "
I’m guessing this is relating this line of code:
$w("#dob").text = details.birthDate([], dobOptions).toDateString;
which would make sense because that’s the point where the code stops running.
But I’m not sure what is wrong with that as I’m sure that was working correctly before…
EDIT: I’ve just realized it was because I placed the () after “birthDate” which isn’t a function so I’ve changed it to this:
$w("#dob").text = details.birthDate.toDateString(dobOptions);
Which has fixed the original issue! But now the (dobOptions) isn’t working properly… This is how I’ve set the dobOptions variable:
const dobOptions = {day: "2-digit", month: "2-digit", year: "numeric"};
I want the dob to show like this “31/01/2020”