ActionsDev

4 replies to this thread. Most Recent

Ian Webb

10 Nov 2016, 12:53 pm

[Pro] Textareas

Hi!

Can anyone tell me how to set the ‘value’ of a textarea in an action?

Text fields are simple - just set the value property, but textareas need to have the ‘value’ placed inside the tag.

Cheers, Ian.

Ian Webb

10 Nov 2016, 1:15 pm

OK, solved that one [ myTag.fwAddRaw(markupStr) ]

So, now, how do I clear any existing ‘value’ for the textarea?

Cheers, Ian.

waltd

10 Nov 2016, 1:35 pm

Off the top of my head, it’s probably going to be something like fwContent.fwDelete(). Maybe.

Walter

On Nov 10, 2016, at 8:15 AM, Ian Webb <[email protected]> wrote:

OK, solved that one [ myTag.fwAddRaw(markupStr) ]

So, now, how do I clear any existing ‘value’ for the textarea?

Cheers, Ian.

Freeway user since 1997

http://www.walterdavisstudio.com

Ian Webb

10 Nov 2016, 2:07 pm

Hi Walter!

Hmm, .fwDelete() deleted the whole tag, no just its content.

Any other ideas anyone?

Cheers Ian.

Back to Top

Tim Plumb

10 Nov 2016, 4:10 pm

From memory you need to iterate through all of the content of the textarea as it could be made up of multiple items; ~~~~ var allContent = textarea.fwFindAllContent(); for (var a=0; a < allContent.length; a++){ allContent[a].fwDelete();}~~~~Regards,Tim.> On 10 Nov 2016, at 14:07, Ian Webb <[email protected]> wrote:

Hmm, .fwDelete() deleted the whole tag, no just its content.

Any other ideas anyone?

Tim Plumb - Experienced Freeway designer for hire

FreewayActions.com - Freeware and commercial Actions for Freeway Express & Pro

FreewayStyle.com - Free Freeway templates and parts to download, use and explore