Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
Hello.
Help me assign the value to the "text input" cell by the number of clicks on the "button" cell.
For example:
You click on the button once - cell "text input" takes the value "1".
You click on the button twice - cell "text input" takes the value "2" etc.
Solved! Go to Solution.
I can only figure out how to do this with some JS.
You can use an Application Parameter or and var in the JS. Here is how to do it with the app.param
$scope.bump = function () { $scope.app.params.myValue = parseInt($scope.app.params.myValue) + 1; //you need parseInt as parameters are strings }
I can only figure out how to do this with some JS.
You can use an Application Parameter or and var in the JS. Here is how to do it with the app.param
$scope.bump = function () { $scope.app.params.myValue = parseInt($scope.app.params.myValue) + 1; //you need parseInt as parameters are strings }
Thank! It works!
I did not immediately see that the parameter "myValue" needed to be set to "0" =)