[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.


actionsdev mailing list
email@hidden
Update your subscriptions at:

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

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

Cheers, Ian.


actionsdev mailing list
email@hidden
Update your subscriptions at:

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@hidden wrote:

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

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

Cheers, Ian.


actionsdev mailing list
email@hidden
Update your subscriptions at:
Information for existing FreewayTalk / Groups.io users - Site Feedback - Softpress Talk


actionsdev mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

Hi Walter!

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

Any other ideas anyone?

Cheers Ian.


actionsdev mailing list
email@hidden
Update your subscriptions at:

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@hidden wrote:

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

Any other ideas anyone?


actionsdev mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options