You need to sign in to do that
Don't have an account?
mromani
Update a field using a custom button
I need help. I'm trying to change the value of a field by using a custom button. I would like to be able to do it using Javascript.
Using this code works: alert ( {!Box__c.Box_Count__c } +1) ; which displays the current count of my variable.
But when i try something like this, it doesnt work... {!Box__c.Box_Count__c } = ( {!Box__c.Box_Count__c } +1);
I'm trying to add 1 to whatever the value of my count is.
Any help would be appreciated!
My email in case is mromani@robotshop.com
Thanks
Two ways are described here, using Apex or JavaScript.
Hope that helps,
Sati
All Answers
Two ways are described here, using Apex or JavaScript.
Hope that helps,
Sati
Could you let me know how you solved this? I have a similar issue. My Javascript works but not as expected. Instead of adding the value of one to the number (ie going from 2 to 3) it is appending the one to the end of the number (ie going from 2 to 21).
Thanks in advance for your help.
Wouldn't you know I"d figure it out after I post?
Turns out I had quotes around my original field value that was causing this.