How to Enable/Disable Clicking for a Container Element? - Forum

Forum Navigation
You need to log in to create posts and topics.

How to Enable/Disable Clicking for a Container Element?

Hi everyone,

I'm trying to enable and disable clicking for a container element. The method I'm using works perfectly for button elements, but it doesn't seem to work for containers. Has anyone encountered this issue before? Any suggestions or solutions would be greatly appreciated.

I've attached the relevant sample for reference.

Thanks in advance!

Uploaded files:
  • You need to login to have access to uploads.

@asmat it seems the Container object does not like the Enable and Disable options as they are probably designed for Form objects (buttons, dropdowns, etc.), but there is an easy workaround.  Please see attached sample.

Uploaded files:
  • You need to login to have access to uploads.
asmat has reacted to this post.
asmat

Thank you very much, @Luis.

This is a good idea, but if we have many container elements, it will increase the number of variables.

@asmat if you have many Container elements, use an Array intead of single variables.
Check attached app and Project > Events.

Uploaded files:
  • You need to login to have access to uploads.
asmat has reacted to this post.
asmat

Thank you so much, Mr. Luis!"
Your idea is beautiful. I have some asynchronous processes, and my buttons initially function as containers. By adding a CSS class, I customized them to match my brand. When a user clicks a button, it becomes unclickable until a certain process is completed. After the process is done, the button resets."

Uploaded files:
  • You need to login to have access to uploads.
luishp has reacted to this post.
luishp