Where can I change the success and error text?
Permalink Browser Info Environment
Hi, I want to change the success and error text into my own language, how do I do this? I hava done it on a previous site, so I know it is possible, bun now I just can't find out where to do it.
Thanks ;0)
Thanks ;0)
Type: | Discussion |
---|---|
Status: | New |
Same as any form block -- click the "options" tab when editing the block and there are fields there for the message.
Thank you for your reply, but I can only change the success text here (Message to display when completed). Do you know where in the code I can change the error text. I also want to change the text on the button from submit to something else. As I said, I have done this before, but I just can't remember where. I have looked through all the codes in the package, but I don't think it is there.
This package only provides a custom template for the built-in form block. The field names and error messages are all set in the block controller itself, so you need to look here (for 5.5 or lower):
/concrete/blocks/form/controller.php
Or here (for 5.6):
/concrete/core/controllers/blocks/form.php
-Jordan
/concrete/blocks/form/controller.php
Or here (for 5.6):
/concrete/core/controllers/blocks/form.php
-Jordan
I am having the same problem. I only need to localize the form block validation, because I do most of the editing of sites for my Swiss customers. Before 5.6 this was doable, by creating a template and changing the answers in controller.php.
Now I want to use the form tableless layout addon and localize the validation.
Any suggestions?
Thanks!
Now I want to use the form tableless layout addon and localize the validation.
Any suggestions?
Thanks!
I unfortunately don't have an answer for you. I don't know how to localize the validation messages... but if you're saying that you modified the controller to do so before, you should be able to keep doing that (regardless of whether or not you're using this tableless-layout template -- it is just the view template and should have no bearing on the controller).