My final working code is:

goal 1: <$view field=g1_value/> <$edit-text 
tiddler="StoreDailyQuestionnaireData" field="g1_value"/> 
<$button>
<$action-setfield $field=g1_value 
$value={{StoreDailyQuestionnaireData!!g1_value}} />
<$action-setfield $tiddler="StoreDailyQuestionnaireData" $field="g1_value" 
$value="" />
change goal 1
</$button> 



On Friday, August 2, 2019 at 2:45:56 PM UTC+2, Melvin wrote:
>
> I got it by doing
>
> <$edit-text tiddler="StoreDailyQuestionnaireData" field="mytestfield"/>
> <$button><$action-setfield $field=demonstration1 
> $value={{StoreDailyQuestionnaireData!!mytestfield}} />Set the field 
> 1</$button>
> <$button><$action-setfield $field=demonstration2 
> $value={{StoreDailyQuestionnaireData!!mytestfield}} />Set the field 
> 2</$button>
>
> ---
> <$view field=demonstration1/>
> <br />
> <$view field=demonstration2/>
>
> On Friday, August 2, 2019 at 2:13:17 PM UTC+2, Melvin wrote:
>>
>> I am trying to find a suitable workaround for edit-text. I'm using 
>> TiddlyWiki as my journal.
>>
>> I have a template Tiddly for questions with radio buttons and all that. I 
>> clone it for the day, change the date and that is my new Tiddler.
>>
>> However, the amount of stuff I need to edit within my tiddler just to 
>> answer some questions is becoming a lot. I'd like to do it via input fields.
>>
>> For example, I have questions such as: what goal do you have for today 
>> (up to a max of 3 goals).
>>
>> Now I'd need to edit the Tiddler for it.
>>
>> But I'd like to simply see an input tag with a button save next to it and 
>> when I type in my goal and click "save!" it replaces the text that was 
>> within the field.
>>
>> In that sense it looks a lot like the appender of the following 
>> TiddlyWiki at http://skeeve.tiddlyspot.com/
>>
>> Another example (but then with a dropdown menu instead of free input 
>> text) is 
>> http://inmysocks.tiddlyspot.com/#Concatenating%20Strings%20-%20What%20Breaks
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a92b950f-6d44-49c7-a940-1c4d6d2e048e%40googlegroups.com.

Reply via email to