Convert to component loses custom attributes

Hi, I’ve been building questionnaires and have some custom JavaScript to control conditional display questions. As part of this I have a custom attribute ‘controlledby’ that lets the script know the name of the input that the conditional question is controlled by.

E.g.

controlledby=“QUESTIONNAME”

This all works fine and I’ve been able to add the html code for one of my questionnaires to Bootstrap Studio and get it all working.

However, if I convert that HTML to components to make it easier to edit in future, the component it creates doesn’t have the controlledby attribute. Everything else copies across fine.

I realise this may simply be beyond the intended use of the function, but I wanted to check whether there is simply something I’m doing wrong, or if anyone knows of a work around?

as a workaround maybe you could try in this format ?
data-controlledby=“QUESTIONNAME”

Ah that worked! I had a feeling there would a simple solution I just hadn’t thought of.

Thank you very much!