+ Start a Discussion
sfdeveloper12sfdeveloper12 

how to make standard sync button enable or disable based on picklist values

Hello,

Is there any way to make standard sync button enable or disable on particular picklist condition?
Supposte Status= granted then i should able to sync and if Status = awaiting for approval then it should not sync.
I want to control it on statndard sync button on quote object

Thanks & Regards,
Utkarsha
Best Answer chosen by sfdeveloper12
Dutta SouravDutta Sourav
Hi Utkarsha,

To make the Button Visible/Invisible based on Status, you have to design a VF Page, there is no standard way.

I would suggest to write a Validation Rule on Quote:
AND( 
TEXT(Status )= 'awaiting for approval', 
IsSyncing 
)
Hope this helps!

Best Regards,
Sourav

All Answers

Dutta SouravDutta Sourav
Hi Utkarsha,

To make the Button Visible/Invisible based on Status, you have to design a VF Page, there is no standard way.

I would suggest to write a Validation Rule on Quote:
AND( 
TEXT(Status )= 'awaiting for approval', 
IsSyncing 
)
Hope this helps!

Best Regards,
Sourav
This was selected as the best answer
sfdeveloper12sfdeveloper12
Thank You Sourav. :-))
Using validation rule i can restrict the sync access.