Ian_Webb
(Ian Webb)
1
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:
Ian_Webb
(Ian Webb)
2
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:
waltd
(Walter Davis)
3
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
Ian_Webb
(Ian Webb)
4
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:
Tim3
(Tim)
5
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