Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional text for regexp check (feature wish) #143

Closed
elaratain opened this issue Jul 1, 2015 · 6 comments
Closed

Optional text for regexp check (feature wish) #143

elaratain opened this issue Jul 1, 2015 · 6 comments

Comments

@elaratain
Copy link

Would be nice to be able to "change the checked against" text. I think most users do not understand long regular expressions like [A-Z]{2}(\s?)(\d{2,4}\s?)(\d{4}\s?){4}(\d{2,4}\s?)? and would be happier with e.g. AA00 0000 0000 0000 00

@Klap-in
Copy link
Collaborator

Klap-in commented Nov 18, 2015

Feature is implemented. You can use now "**Your message" or **Message to replace the default 'checked against..' text.

@Klap-in Klap-in closed this as completed Nov 18, 2015
@asheenlevrai
Copy link

I'm sorry, could you please explain how this new feature works? I mean how to use it properly.
Tx
-a-

@Klap-in
Copy link
Collaborator

Klap-in commented Nov 21, 2015

Good question, I added the syntax also to the wiki page of the plugin.

For an field that should only accept allowed pagenames, you could use the new syntax to explain which characters are filtered:

textbox "Your pagename" /^[^\/:]+$/ "**Don't use / or : in your page name"

@asheenlevrai
Copy link

Thanks,

For some reason DW doesn't see that the plugin should be updated. The documentation page still refers to 2015-09-14 as the last update while your change is mentioned in the "changes" section.

Best,
-a-

@Klap-in
Copy link
Collaborator

Klap-in commented Nov 23, 2015

Aha, you're right, thanks again!
I updated the update date, so update mechanism should pick it up again.

@asheenlevrai
Copy link

Cool :) Tx!

Now I noticed the "new" error message is now displayed inside the page (inside the square, below the name of the page) rather than above the page (outside the square, above the name of the page) like other error messages.

In our situation, errors messages are not seen by users when submitting data with errors since the form is located at the bottom of a long page and error messages do not cause scroll up back to top...

Now, since the "new" error message is displayed in a different place (compared to default error messages), would there be any way to have it rather displayed just next to the form? Like just above it or below it?. This way users could easily notice whenever they have made any mistake.

Tx
-a-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants