-
- 368 Posts
I am trying to edit the Formit lexicon so that "This field is required" will instead read "Name is required" (for instance). This is so that I can bunch the errors together at the top of the page instead of putting them by each field in the form. Taking a clue from another lexicon entry, I tried "[[+field]] is required" but that came out with blank space where the field name should have been. Is there any way to do this? Thanks.
Jason
If there’s not a way to do that, it’d make a great feature request...
-
- 24,544 Posts
Did you try [[+fieldName]] or [[+fi.fieldName]] in your form? Whatever is used for the caption in the form should be available for use in the error message line.
I think Bob meant for you to put those placeholders in the relevant form chunk, not the Lexicon.
-
- 24,544 Posts
Quote from: kenquad at Dec 08, 2010, 05:58 PM
Quote from: Everett at Dec 08, 2010, 05:56 PM
I think Bob meant for you to put those placeholders in the relevant form chunk, not the Lexicon.
It almost sounded like that and maybe I’m a little dense today, but where would I put them? Concatenated with the error messages? How would the parser know which was which?
Good point. It would show all the time unless you used a separate placeholder for it and I’m not sure how you’d set it. Shaun might have an idea.
-
- 368 Posts
I’d love to file a feature request for field names in error messages. How do I get set up to file one on your Github?
Jason
-
- 4,149 Posts
You get a GitHub account and file one, I think.
shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect |
github |
splittingred.com