Hi,
I have a "Print "button inside a repeating group that is supposed to 1) Print the details of the said record as a pdf 2) create an audit trail entry that print was done.
Problem is that if the button is clicked multiple times in quick succession , it creates multiple pdf and creates multiple records in the audit trail
I wanted to disable the button for 2 sec. I tried this using a custom state called “Recently Pressed” - Yes/no and changing the custom state to “Yes” and making the element isn’t clickable as a conditional.
The problem is that I want to add another step after a pause of 2 second that makes the custom state to No. this reversal cannot be in the original workflow because this pauses the pdf generation too.
But I am unable to access the custom state from outside the repeating group to reverse the custom state. of the specific button.
Any help would be appreciated.
PS: The custom state method works well for buttons that are not part of a repeating group.