0
Labelling a Check Box using output from Text Input component
New Here
,
/t5/animate-discussions/labelling-a-check-box-using-output-from-text-input-component/td-p/12984448
Jun 04, 2022
Jun 04, 2022
Copy link to clipboard
Copied
Hello,
I've started working on an like a checklist or shopping list. You write what you want into the Textinput component and when you press done it will be what the check box is called. (if that makes sense). Is there a way to do it? Thanks for any help!!
TOPICS
ActionScript
,
Code
,
How to
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/animate-discussions/labelling-a-check-box-using-output-from-text-input-component/m-p/12984810#M354548
Jun 04, 2022
Jun 04, 2022
Copy link to clipboard
Copied
if your textinput has instance name ti and your checkbox instance name is cb, you can call doneF();
function doneF(){
document.getElementById("cb").nextSibling.outerHTML = '<label for="cb" style="box-sizing: border-box;">'+document.getElementById("ti")+'</label>'
}
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

