Seting a field from a select widget selection not working ... Need help !!

37 views
Skip to first unread message

vpl

unread,
Oct 11, 2019, 10:40:32 AM10/11/19
to TiddlyWiki
Hi experts ..!

I have a question related to the select widget

I have create a tiddler called "contactTemplate"
In this tiddler I've created a select witch lists the unique content of the "company" field of all of my tiddlers with a "Contact" tag

Company <$select tiddler="LogSearchInput" field="companyField">
<$list filter='[tag[Contact]each[company]sort[company]]'>
<option value=<<currentTiddler>>><$view field='company'/></option>
</$list>
</$select>

This works fine.

But I want to set to the "companyField" of the tiddler "LogSearchInput" the user selection (in my case the "company" selected value)

With the above code the companyField is set to the tiddler title unfortunately ..  

How should I modify this code to get, in the companyField, the selection of the select widget ?

Thanks a lot for your help

Regards

Vpl


vpl

unread,
Oct 11, 2019, 11:16:14 AM10/11/19
to TiddlyWiki
Solved in fact 

The correct code is 

Company <$select tiddler="LogSearchInput" field="companyField">
<$list filter='[tag[Contact]each[company]sort[company]]'>
<option> <$view field='company'/></option>
</$list>
</$select>
Reply all
Reply to author
Forward
0 new messages