フォームの入力内容チェックについて | Community
Skip to main content
Koki_Enomoto
Level 3
April 12, 2018
Question

フォームの入力内容チェックについて

  • April 12, 2018
  • 3 replies
  • 2126 views

Marketoフォームでお客様より、あるIDを入力していただいているのですが、そのIDの条件が以下の通りとしています。

そのようなチェックはMarketo上ではできるのでしょうか?

(せめて8文字以上であるどうかのチェックはできるようになりたいです)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Josh_Hill13
Level 10
April 12, 2018

Jquery would be the way, although I can't understand the screenshot.

SanfordWhiteman
Level 10
April 12, 2018

This is covered in this blog post:  http://blog.teknkl.com/more-conditional-input-masks-on-marketo-forms/

See the 4th example, where I restrict ProductCode to 3 required and 3 optional characters.

Koki_Enomoto
Level 3
April 13, 2018

英語版(English)

In the Marketo form, customers have entered an ID, but the condition of that ID is as follows.

Can you do such a check on Marketo?

(I'd like to be able to check at least 8 characters or more)

【Conditions】

・User ID is 8 characters or more

The user ID can be "letters (upper case letters and lower case letters)" "numbers" "." "@" "-" "_".(Examples of characters that should not be used: "#" "'" "*" "+" "$" etc.)

SanfordWhiteman
Level 10
April 13, 2018

You will need to create custom character classes for those restrictions as I indicated in the blog post.

For example:

var maskCharExtensions = {

  u: "[A-Za-z0-9.@_-]",

  o: "[A-Za-z0-9.@_-]?"

};

Then your pattern looks like

I know we have a language barrier and realize this may be difficult to understand, but it's all there.