function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sameer VitvekarSameer Vitvekar 

disable action button using field value

I have two objects Section and Course Registration. Section object has an object specific action button on course registration. Using the action button we create registration from Section. However, We want to disable the action button when field value of one of the field becomes 0. 
Deepali KulshresthaDeepali Kulshrestha
Hi Sameer,
As far as I  understand your question you want a button to get disabled as soon as any of the fields gets 0 value. We can set similar aura id to all input fields and can get them in helper using 'c.find(auraid).get(value)', also we have to set on change attribute to each input field and have to call controller which will get value of input fields and will take it to helper and will check whether it is 0 or not. If it is then we will set disabled attribute of the button to true, that's all.

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha