55
Views
2
Comments
handle button click that was performed by the producer's client action using js
Application Type
Reactive

I have a producer client action where I am using JavaScript to trigger a button on click action.

Now, in the consumer module, I am calling this client action and want to handle this button click action.

Is there any way to achieve this?

2025-12-17 21-10-06
Shlok Agrawal

Hey @Vrushali Punekar would you please explain in bit more detail supported with some screenshots. 

UserImage.jpg
Puja Rani

Hi @Vrushali Punekar ,

Not sure if this is your actual requirement, but this is what I understood.

Step1 - you can create one public client action, with this input parameter

Step 2- Consume this action in the consumer module and call that action on button click and then have one button (which will be hidden) which you want to get triggered with help of JS. assign a unique class name to that hidden button and send this class name to the client action in step1.  


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.