You need to sign in to do that
Don't have an account?
azimu
Button that manipulates a date field on a record
Hi all,
Was hoping I could get some help with programming a button! I've got a custom object "service" which has a field expirydate__c (date) and a field billfrequency__c (number).
This sounds easy but for some reason I'm having a really hard time doing it - I'd like to have a 'renew' button which calls a class which simply updates the expiry date to previous expiry date + billfrequency.
Any help much appreciated!
Was hoping I could get some help with programming a button! I've got a custom object "service" which has a field expirydate__c (date) and a field billfrequency__c (number).
This sounds easy but for some reason I'm having a really hard time doing it - I'd like to have a 'renew' button which calls a class which simply updates the expiry date to previous expiry date + billfrequency.
Any help much appreciated!
Create a Javascript Button and use following script in button and create an apex class.
Button Code
Apex Class Code Let me know if you face any issues.
Best Regards,
Mithun.
All Answers
Create a Javascript Button and use following script in button and create an apex class.
Button Code
Apex Class Code Let me know if you face any issues.
Best Regards,
Mithun.