The previous version could overwrite tiddlers which were not created with 
the form.

If you stick to tiddler!!title == tiddler!!text, mwaning: You won't 
overwrite the content of the tiddlers created with the form, this version 
will prevent you from overwriting tiddlers not created with the form, by 
simply not offering the Create button when a tiddler already exists

\define theTiddler() $(the_tiddler)$!!title

|!Username |<$edit-text tiddler="$:/temp/newuser" placeholder="username" tag
="input" type="text"/> |
|!First Name |<$edit-text tiddler="$:/temp/newuser" field="firstname" 
placeholder="first name" tag="input" type="text"/> |
|!Last Name |<$edit-text tiddler="$:/temp/newuser" field="lastname" 
placeholder="last name" tag="input" type="text"/> |
|!E-Mail |<$edit-text tiddler="$:/temp/newuser" field="email" 
placeholder="e-mail 
address" tag="input" type="text"/> |
|!sometags |<$checkbox tiddler="$:/temp/newuser" tag="Admin"> Admin<
/$checkbox><br/><$checkbox tiddler="$:/temp/newuser" tag="cron"> cron<
/$checkbox><br/><$checkbox tiddler="$:/temp/newuser" tag="www"> www</$checkbox> 
|

<$reveal type="nomatch" text="" state="$:/temp/newuser">
  <$reveal type="match" text={{$:/temp/newuser}} state={{$:/temp/newuser}}>
    <$button set="$:/temp/newuser!!title" setTo={{$:/temp/newuser}}>
      Modify
    </$button>
    <$set name="the_tiddler" value={{$:/temp/newuser}}>
    <$button setTo="$:/temp/newuser" set=<<theTiddler>>>
      Fetch
    </$button>
    </$set>
  </$reveal>
  <$reveal type="match" text="" state={{$:/temp/newuser}}>
    <$button set="$:/temp/newuser!!title" setTo={{$:/temp/newuser}}>
      Create
    </$button>
  </$reveal>
</$reveal>

Just try it on tiddlywiki.com, entering "HelloThere" as Username. Note that 
a Create Button will appear after the first character and vanish when the 
name is complete.

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to