Get Text Box Text and formatting info

Hi there,

Does anyone know if it’s possible within designer to get the contents of a text box and place them into an internal variable? For example text box contains “Hello @TEST@” with small caps formatting. Can you get this content and place into an internal variable?

Thanks

Ol

Let say that your content is in a DIV with the ID “myBOX” then you would use this in your script:

var myBoxContent = Query(‘#myBOX’).text();

Hope that help.

Is there a way to gather the formatting? Fonts, Font Size and Style?

I’m trying to do a workaround on just using a variable to make a box transparent or opaque you see

I think this is what you are looking for…simply change the $(jquery) by Query() in your script.

Thank you ! :slight_smile: working great thank you