$action-setfield and $edit-text

42 views
Skip to first unread message

Sebastian Ovide

unread,
Oct 10, 2019, 4:27:06 AM10/10/19
to TiddlyWiki
Hello

I have a macro that eventually return this string

<strong>Likes</strong><hr/>
<
<list-links filter:"[tag[Like]] +[tag[Mission Statement]] +[!has[draft.of]]" type:"div" subtype:"div" >>


<$keyboard key="enter" actions="""
        <$action-createtiddler
        $basetitle={{$/tmp!!new_Mission_Statement_Likes}}
        $savetitle="!!justCreated"
        tags="[[Like]] [[Mission Statement]]"
        />
        <$action-setfield $tiddler="$/tmp" $field="new_Mission_Statement_Likes" $value="ciccio"/>""">
    <$edit-text tiddler="$/tmp" field="new_Mission_Statement_Likes" type="text" size="40" placeholder="enter a new Likes here" default="ciccio"/>
</$keyboard>

I would expect that the $edit-text has a default value "ciccio" and than when you press enter, the list is populated and the "ciccio" appear again in the text field. Instead it is empty. 

Any ideas ?

thanks


Reply all
Reply to author
Forward
0 new messages