"On Variable Change"... awesome improvement

Jack Bellis shared this thanks 2 years ago

For folks who do complex interactions (which require logic on a lot of components) the new feature of JIM 7.0 "On Variable Change: triggers events when a variable value changes" is looking like one of the most significant improvements in the several years I've been a user. I've already used it enough to see that it essentially gives you the power to reuse code, as in methods or functions, instead of having to copy interactions to multiple components... which in turn used to require you to apply modifications in multiple places. Great job!

Comments (8)

photo
1

Hi Jack,


We are happy to hear you've been enjoying this new feature. We wish you happy prototyping and look forward to hearing from you in the future!


Best,


Sonia Durán

photo
1

Hi,

I'm trying JIM out and can't seam to get this function right "On Variable Change"

So in the app I have a Phone Number field and a Next button, I want to build the logic that when the Variable "Phone Number" = 81712345678, the 'Hidden by default' Next button Shows up and 'links to next page' 'on tap'

Attached what I tried and it's not working on the simulation,

Appreciate if you can help.

Tony

photo
1

Dear Tony,


Can you attach an example/snippet of your prototype so we can see what you are looking for and assist you more helpfully.

You'll need to export it to a .rar format, or you can upload it to a file sharing service like Dropbox and attach the link here.


Best,

photo
1

Hi Sonia, thank you for the reply,


Attached the JIM file with the screens in question,


In the mean time, I went through all tutorial articles/videos to find a list of Functions and Constants and what each one means and can be used, but didn't find anything like this. Maybe the platform is built for developers who have some experience with Conditions and RegExp, and I'm not one of them. But if you have this kind of literature I'll be happy to read through it.


Looking forward to your opinion on it, thanks, T.

photo
1

Hi Sonia,


Any updates on this issue?

photo
1

Dear Tony,


Sorry for our late response. I will have a look and I'll let you know something ASAP. Thank you for your patience.


Best,


Sonia Durán

photo
1

Dear Tony,

I've been analysing your prototype and the events were added incorrectly. You need to apply an on key up instead of the "on variable change" so when the value is introduced correctly you are able to navigate to the next screen. See the screenshot attached.

Kindly let me know how it goes.

Best,

Sonia Durán

photo
1

Thank you Sonia,


This helps a lot. Appreciate it.