Assign variable value on calculate button
-
Hi!
Is there a way to assign variable value on click of a button in the modern version of plugin?
On a very old version of this plugin I had a calculate button A with a code in OnClick event
myvar = 1;
And another calculate button B with a code
myvar = 0;
Then I have a calculate field with code
if (myvar == 1) {…}else if (typeof myvar === ‘undefined’ || myvar === null || myvar == 0) {…}
And this worked. Now when I update the plugin and click “button A” myvar is still undefined. When I click after that any other calculate button it finally makes myvar = 1 and the correct code executes.
Same happens when I click “button B” – after first click nothing changes. I need to click another calculate button to change the value of the variable.
- The topic ‘Assign variable value on calculate button’ is closed to new replies.