
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 pmOK, 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 pmOff 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
Ian Webb
10 Nov 2016, 2:07 pmHi Walter!
Hmm, .fwDelete() deleted the whole tag, no just its content.
Any other ideas anyone?
Cheers Ian.
Tim Plumb
10 Nov 2016, 4:10 pmFrom 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
