I have this call to WebLoginPE:
[!WebLoginPE? &type=`profile` &profileTpl=`TestProfile` &customFields=`cg_first_name,cg_last_name`!]
the "TestProfile" Snippet looks like this:
First Name: <input type="text" name="cg_first_name" value="[+user.cg_first_name+]"/>
Last Name: <input type="text" name="cg_last_name" value="[+user.cg_last_name+]"/>
<button type="submit" name="service" value="saveprofile">Save</button>
<button type="submit" name="service" value="cancel">Cancel</button>
The cg_first_name and cg_last_name fields magically appeared in my web_user_attributes_extended table
The difficulty? When I edit the two text fields (say, put "aaa" in one and "bbb" in the other) and click the save button, no database update occurs. I am sure I am doing something boneheaded, but I cannot see it. Can anyone help?
Thanks in advance.
P
Thanks for the reply Soshite.
I was under the impression that input handlers were only for multi valued field types (such as combo boxes, check boxes, radio buttons). I do not see a reference in the docs to text boxes. Did I miss it? Or did I misunderstand what I read?
P
Well, [++] is definitely used for placeholders, but that should not affect the saving. The placeholders in my example should just show what is currently in the database for this user (when using WebLoginPE; the user.<field> syntax is specific to WebLoginPE, or so I believe).
P
Doh!
I found my issue (or at least the first one). You will note, my stuff is not within a <form> tag! No action occurs because no form is present!
P
I think I also found a bug in WebLoginPE regarding saving data. I posted it in the bugs section.