|!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... /example shortened/
"$:/temp/newuser"
where names and e-mail are stored in fields and the text is the user's username:
title: $:/temp/newuser
tags: some tags which were set
text: Skeeve
firstname: Stephan
lastname: hradek
email: witheld
What if a user used a " in some input value?
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
There is no way to do this in 5.1.4 without widgets, trust me I tried very hard.
<$button set="$:/temp/newuser!!title" setTo={{$:/temp/newuser!!title}}">...
Am Mittwoch, 12. November 2014 17:32:16 UTC+1 schrieb Danielo Rodríguez:There is no way to do this in 5.1.4 without widgets, trust me I tried very hard.Actually: I found a way!
<$button set="$:/temp/newuser!!title" setTo={{$:/temp/newuser!!title}}">...
Looks like a bug.😄
I think I got something similar, much more twisted and less cleaner. Does that change the tiddler tittle or creates a new one? A clone maybe?
But with the same name, not with skeeve as 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">
<$button set="$:/temp/newuser!!title" setTo={{$:/temp/newuser}}>
<$reveal type="match" text={{$:/temp/newuser}} state={{$:/temp/newuser}}>
Modify
</$reveal>
<$reveal type="nomatch" text={{$:/temp/newuser}} state={{$:/temp/newuser}}>
Create
</$reveal>
</$button>
</$reveal>
If anyone's interested, I can show the full stuff later.
Le mercredi 12 novembre 2014 18:50:28 UTC+1, Stephan Hradek a écrit :If anyone's interested, I can show the full stuff later.
Hi, yes I'm interested :)
\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="nomatch" text={{$:/temp/newuser}} state={{$:/temp/newuser}}>
<$button set="$:/temp/newuser!!title" setTo={{$:/temp/newuser}}>
Create
</$button>
</$reveal>
</$reveal>
<$button set="$:/temp/newuser!!title" setTo={{$:/temp/newuser!!title}}">
Hello Stephan,Please note that you first posted:
<$button set="$:/temp/newuser!!title" setTo={{$:/temp/newuser!!title}}">
Your new version is very elegant and useful, but It's not new.
In fact, I reminds me to some of your own customizations.
Thanks for that! Didn't really notice. I already switched off the computer where I had the working version and just typed it from memory, not testing it.
It's not new? Why didn't anyone tell me that I can use that?
Hmm… Am I getting old? (I do hope so) Already? (maybe)… I can't remember I did something similar before. But then: I think I already did some crazy stuff with TW5 before :D
<$set name="the_tiddler" value={{$:/temp/newuser}}><$button setTo="$:/temp/newuser" set=<<theTiddler>>>Fetch</$button></$set>
Well I don't understand Fetch button use. What is his purpose ?
For this use case imagine I've already created my account "Skeeve" using the form.
If I come back later, typing "Skeeve" into the Username, I will be able to set new values, but the current values won't appear in the form unless I press "Fetch". So this is a way to retrieve the values which are already set in my "Skeeve"-tiddler.
Maybe I miss something on my tiddler. Should I add a specific tag system ?
Can you add a clear form button ? I don't know how I could do.
But that does not explains how it works, if it is even possible to explain .....
Add some information into the fields.
Click create.
Change some of the information, but not the Username.
Click "Fetch" and the values you just changed should revert to the values you saved before, when creating the user-tiddler.
Can you add a clear form button ? I don't know how I could do.
<$button message="tm-delete-tiddler" param="$:/temp/newuser">Clear</$button>
But this would prompt for confirmation. Don't know how to avoid that.
No sorry, it doesn't work for me. I don't see anything change in values of my tiddlers.
No! Not the tiddlers change when you "Fetch", the FORM content changes.
I don't have an up-to-date tiddlyspot. All are outdated beta versions a.t.m.
Can you share your non-working experiment? Are you on the latest TW5 version?
Hi Sylvain
The same thing happened to me, when I first copied and pasted. Look at your code, you have a linebreak
<$button setTo="$:/temp/newuser
" set=<<theTiddler>>>
<$button setTo="$:/temp/newuser" set=<<theTiddler>>>
After I corrected that in my TW...it worked.
Birthe
(by the way Mario, my first name is Sylvain, not Sylvian, even I like this new label :D)
Thanks a lot, Stephan!
I think that's quite a prominent candidate for tw5magick ...if that's what you use it for.
It works for me after the upgrade.
Your example did not work for me either
\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>