- This topic has 6 replies, 2 voices, and was last updated 10 years, 6 months ago by
Code_A.
-
AuthorPosts
-
tornadocrashstudiosMemberHi! Is there any way to make an app asking for your Genet and age just the first time you open it? I would like to make different pages based on age and gender but also the app not to asks you these details every time you open it. I would love to make it asks you your username the first time and displays it like you have an account. I have tried some tutorials from this forum about variables but I didn’t achieved to make it. Thanks!
Code_AMemberYou can use localStorage to save the data. Here is the localStorage How-To.
Be sure to place the recall code in the documentReadyHandler function (on load event) of your <your-form-name>_custom.js file which can be found in your project’s www folder.
tornadocrashstudiosMember@Code A wrote:
You can use localStorage to save the data. Here is the localStorage How-To.
Be sure to place the recall code in the documentReadyHandler function (on load event) of your <your-form-name>_custom.js file which can be found in your project’s www folder.
ok thanks! I will try this.
tornadocrashstudiosMemberhmmmmmmmmmmmm… I’m sorry but I know just few things about programming(that’s the basic reason why I selected mobione).Could you sent me a draft file that works in that way, or tell me in more simply how i will make it please?
Code_AMemberHere is an example of saving and recalling text in a textfield. Type the text in, hit save and then when you run the app again the saved text will be loaded back into the textbox. The save code is located in the button On Action>Run Javascript window. The recall code is located in the save_custom.js file within the project’s www folder. Hope this helps.
Attachments:
You must be logged in to view attached files.
tornadocrashstudiosMemberThat helped me on saving and displaying username, but i can’t still make it saves your age/gender and redirects you to a screen according to your personal details. For example, if you click on the radio button that directs you to the screen for men once, it should saves it and remembers it forever. So every time the app is used, it should redirects you automatically to the screen you selected. The same thing for women.
Could you send me an example like this, please?
Thank you very much!!!! -
AuthorPosts