I want to be able to pass a variable from a Form to another Form page and allow that new page to access and do what ever to that variable. It would be like a Multi Form type of thing.

I know drupalgap_goto() is avilable but I am not sure how I would use it for that purppose.

Comments

doors’s picture

Title: I want to pass an variable to a page » I want to pass a variable to a page
doors’s picture

Issue summary: View changes
tyler.frankenstein’s picture

Status: Active » Needs review

One thing comes to mind:

Use window.localStorage.setItem('my_variable', JSON.stringify({foo: 'bar'})); during the first form's submission, then the second form could use var foo = JSON.parse(window.localStorage.getItem('my_variable')); to get that variable on the second form.

doors’s picture

Thanks a lot Tyler. That worked.

tyler.frankenstein’s picture

Status: Needs review » Closed (works as designed)