Note that there are some explanatory texts on larger screens.

plurals
  1. POcustom signup "signupXhtml"
    text
    copied!<p>Greetings </p> <p>I'm using the next object to customize the signupXhtml form</p> <p>The code is the next</p> <p>object User extends User with MetaMegaProtoUser[User] with ReCaptcha {</p> <p>............................................ ............................................ ............................................</p> <pre><code> override def signupXhtml(user: User) = { (&lt;form method="post" action={ S.uri }&gt; &lt;table&gt; &lt;tr&gt;&lt;td colspan="2"&gt;{ S.??("sign.up") }&lt;/td&gt;&lt;/tr&gt; { localForm(user, false, signupFields) } &lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;{ captchaXhtml() }&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;td&gt;&lt;user:submit/&gt;&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; &lt;/form&gt;) } </code></pre> <p>............................................ ............................................ ............................................ }</p> <p>and the output in html is the next</p> <pre><code> &lt;form action="/my/signup" method="post"&gt; &lt;table&gt; &lt;tr&gt;&lt;td colspan="2"&gt;Sign Up&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Username&lt;/td&gt; &lt;td&gt; &lt;input id="txtFirstName" name="F443739586660TOG" type="text" maxlength="32" value="" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;Lastname&lt;/td&gt; &lt;td&gt; &lt;input id="txtLastName" name="F443739586661IYO" type="text" maxlength="32" value="" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;email&lt;/td&gt; &lt;td&gt; &lt;input id="txtEmail" name="F443739586662Z43" type="text" maxlength="48" value="" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;passwd&lt;/td&gt; &lt;td&gt; &lt;span&gt; &lt;input value="*******" type="password" name="F443739586663IFM" /&gt; Repeat &lt;input value="*******" type="password" name="F443739586663IFM" /&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt; ............................................... &lt;/table&gt; &lt;/form&gt; </code></pre> <p>I need to customize the email field, as follows:</p> <pre><code> &lt;input id="txtEmail" name="F443739586662Z43" type="text" maxlength="48" value="" onblur="return my_function();"/&gt; </code></pre> <p>How insert onblur="return my_function();" on txtEmail element ?</p> <p>I was reviewing:</p> <p><a href="http://scala-tools.org/mvnsites/liftweb-2.0/framework/lift-persistence/scaladocs/net/liftweb/mapper/ProtoUser.scala.html#Some%2896%29" rel="nofollow">http://scala-tools.org/mvnsites/liftweb-2.0/framework/lift-persistence/scaladocs/net/liftweb/mapper/ProtoUser.scala.html#Some%2896%29</a></p> <p>and this:</p> <p><a href="http://www.devcomments.com/Example-custom-registration-at1131253.htm" rel="nofollow">http://www.devcomments.com/Example-custom-registration-at1131253.htm</a></p> <p>but did not find anything to help me</p> <p>anyone have any idea? </p> <p>please!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload