You need to sign in to do that
Don't have an account?
Arnas Baronas
Custom button to increment field value on click
Hello,
I am new to salesforce and I would like to know how to create custom button to update record's field value on click.
Should I use lightning component + apex code or is it possible achieve it without code?
Example - what I am trying to achieve:
FieldName: Times clicked
FieldValue = 0 + 1 time clicked // sObject_c.TimesClicked++
Use bellow code for set default look up value in the custom lightning component
Aura Comonent:
Controller: I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi