For a similar use-case, I've used a simple list widget with a filter
testing if the new title is an existing tiddler:
@@.tc-alert-highlight <$list filter="[{Temp Test!!draft.title}is[tiddler]]">
Caution, <$link><<currentTiddler>></$link> already exists!</$list>@@
I assume here that the "Temp Test" tiddler is always used for storing the
entries of your form (with the new title in the draft.title field of this
tiddler). If it i not the case, please provide more precise indications of
how you've really don your form.
Le lundi 28 septembre 2015 01:42:40 UTC+2, Spangenhelm a écrit :
>
> Hi everybody,
> i have created a form where i can enter a title (and several other fields
> at the same time) that allows me to create a new tiddler but i need to be
> sure that the name of the new tiddler does not already exist otherwise it
> will be replaced without warning when i will create it so i have tried to
> use the $set widget with a value and emptyvalue attributes to display a
> message wether the name is taken or not by another tiddler but i am having
> troubles to set it, same thing with the $reveal widget.
> In this case the value to test (the new name) is located in a field called
> "draft.title" in a tiddler called "Temp Test" (any name with a space)
>
> Thank you for your help and time, much appreciated ;-)
> Ps: i have no obligation on what to use so if you have another idea i'm
> open to suggestions.
>
--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/3bf8de92-0c09-4ba5-b010-a15fa476fd08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.