You are viewing limited content. For full access, please sign in.

Question

Question

jquery mask email to force "@comany.com"

asked on January 30, 2020 Show version history

Sorry if my terminology is off, but is there a way to use a jquery masked input to "autofill" the end of the email? So if every email was going to be @gmail.com, then it would have that filled in and only allow the first part of the email to be entered.

0 0

Answer

SELECTED ANSWER
replied on January 30, 2020 Show version history

Another solution would be to use CSS or JavaScript to just append the text after the input:

$('.email input').after('@gmail.com')

You may need to tweak your CSS and test on multiple screen sizes to make sure that it doesn't spill over to the next line though.

Capture.PNG
Capture.PNG (2.99 KB)
0 0

Replies

replied on January 30, 2020

You could use the formula and hidden field strategy I mention here: https://answers.laserfiche.com/questions/167485/Help-adding-email-suffix-to-the-end-of-text-field#167488

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.