It may not be the only problem, but 

tags=[[$licence-plate$]]

is wrong. The substitution variable $license-plate$ does not exist until 
the macro is called.

On Friday, March 6, 2020 at 4:43:28 AM UTC-8, Gerald Weis wrote:
>
>
> Hi folks,
>
> i have a problem with coding the function.
>
> The code should do the follow hings:
> 1. create a optionfield with the options in the selectfunction: works
> 2. create an inputfield for licenceplate: works
> 3. create an tag in the new tiddler from inputfield: works
> 4. create an inputfield for the year: works.
> 5. create the title of the new tiddler from the {$:/SiteTitle} and append 
> the inputfield year: dont work.
>
> i dont know what is wrong
>
> thanks for help
>
>
> \define zyklusa(licence-plate year)
> <$select tiddler='$:/SiteTitle' tooltip='select tiddler wich should will 
> cloned'>
> <option value="Benzin - Jahr">Benzin</option>
> <option value="Fahrzeugpflege - Jahr">Fahrzeugpflege</option>
> <option value="Inspektionen und TÜV - Jahr">Inspektionen und TÜV</option>
> <option value="Räder: Reifen und Felgen - Jahr">Räder: Reifen und Felgen</
> option>
> <option value="Reparaturen und Wartung - Jahr">Reparaturen und Wartung<
> /option>
> <option value="Scheibenwischer - Jahr">Scheibenwischer</option>
> <option value="Versicherung - Jahr">Versicherung</option>
> <option value="Zulassung - Jahr">Zulassung</option>
> </$select>
>
> <$vars ph="Geben Sie die unten verlangten Angaben ein:">
> ''<<ph>>''<br/><br>
> ''licence-plate car:'' <$edit-text tiddler="$:/temp/licence-plate" tag=input 
> size=20  placeHolder=<<ph>> default="licence-plate"/><br/>
> ''         year der Ausgabe:
> '' <$edit-text tiddler="$:/temp/year" tag=input size=10 placeHolder=<<ph>> 
> default="2020"/><br/>
> </$vars>
>
> <$button> clone selected tiddler
> <$action-sendmessage $message="tm-new-tiddler" $param={{$:/SiteTitle}} 
> $value={{$:/SiteTitle}} [[$year$ ]] tags=[[$licence-plate$]] />
> </$button>
> \end
>
> <$macrocall $name=zyklusa licence-plate={{$:/temp/licence-plate}}  tiddler
> ={{$:/SiteTitle}} year= {{$:/temp/year}} tags=[[$licence-plate$]] />
>
>
>

-- 
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/545eba9d-4c78-409a-a75f-039b79fa93bf%40googlegroups.com.

Reply via email to