By clicking on the button the form will be sent - As I have already written an 'action' attribute is set to the form and not the button, button is just the trigger.
BTW. You can remove ReCaptcha block from your form to test it.
2018-10-17, 23:43:15 (This post was last modified: 2018-10-17, 23:47:01 by wdburgdorf.)
And a request: I need the same form in two languages. And if I needed a completely new form, I'd like to start with an existing form. It would therefore be nice if I could duplicate a form easily.
So far I have not been able to duplicate a form at all. The data for it should be in the files, but I could not find out which file, yet.
EDIT: seems to be in here: /data/imanager/items/1.1.im.item.xml - not in an copy-/editable format
Ok, so I went through the somewhat frustrating process of recreating the same form field by field, only to find that the shortcode is not replaced in any language but the main ... Is ImForms not yet compatible with I18N?
v.0.3 is available for download now.
There is an issue with i18n plugin, since i18n only supports two-letter language packs, but ImForms supports language pack approach of GS, with identifiers like en_US, de_DE, etc. Now, I have added an extra variable to the config, its used for the conversion of the language pack names and can be extended in the custom.config.php file as you need.
Also note that, the texts contained in the forms (such as the labels, etc), are excluded from translation and can only be changed by copying or cloning the form into the desired language.
By the way, cloning of the forms is very easy, you don't have to rebuild everything manually:
First, go to the ImForms menu and create a new form called contact_de or contact_fr, for example.
Then you can open/edit your 'contact' item in the ItemManager menu and copy the entire content of the 'Form Data' field, paste it into the new item(s). But you have to be careful that you copy and paste everything exactly, sometimes the browser doesn't delete the whole field content.
After that you have to rename the forms so that they can be accessed in the frontend.
but only the main site appears if I click on the button. The sub site test exists and when I use the above-quoted URL directly in a browser window it works. I can call directly the sub site test.
Just tested and it seems everything is working. I think there's something wrong with your concept. A form is designed to send the data to the server, to forward users you should better use a proper element, for example an <a> tag.
Could you please describe in detail what you have in mind, maybe we will find a better/suitable solution.
Hi Bigin,
I found a solution: I created a new html file with the following content:
<html>
<head>
<meta http-equiv="refresh" content="0; URL=http://localhost/GetSimpleCMS/index.php?id=test">
</head>
</html>
and in the form I call this site and that works. I don't know why it does not work directly in the form.
Hello,
do you mean native GetSimple pages or does it apply to ImForms plugin? If you mean GS pages, there's probably editor that doesn't allow some tags. You can either disable CKEditor in settings, or just use the component for this purpose.
2018-11-01, 03:12:59 (This post was last modified: 2018-11-01, 03:28:52 by harley-peter.)
Hi,
I have the trouble with the native GS pages. When I disable the HTML Editor in the settings it works but in this case I cannot use the editor anymore because if I re-enable the editor the source code will be destroyed again. A bad solution. Can I modify the editor settings so it does not modify the code when I save the page?
Edit:
I read the wiki and the documentation of the ckeditor but for me as a normal user it is very difficult to find out why the editor changes the code and what I have to change to solve the problem.
If I use the obove code per exampel:
<html>
<head>
<meta http-equiv="refresh" content="0; URL=http://localhost/GetSimpleCMS/index.php?id=test">
</head>
</html>
and after saving this the code looks like:
<br />
<meta http-equiv="refresh" content="0; URL=http://localhost/GetSimpleCMS/index.php?id=test">
2019-02-10, 02:00:18 (This post was last modified: 2019-02-10, 02:02:04 by wdburgdorf.)
Probably obvious, but I don't see it, sorry: Where can I set the recipient?
EDIT: Now I see it, in a comment:
"This is the email address to which the Mailer will send all the messages."- $config->emailFrom
I just read "from" and thought it meant "from" ...
If i put php snippet renderResources() in the head section whole website dissapears .
And renderSection('Messages') dont show any messages. No errors, no conflickts
(2020-02-29, 01:36:29)Riianna Wrote: If i put php snippet renderResources() in the head section whole website dissapears .
Why did you do that?
Why didn't you just use the shortcode [[imforms contact]] ?
Also, the call should look like this:
Code:
echo $form->renderResources();
... instead of:
Code:
renderResources();
If you have decided to call ImForm's methods manually, for whatever reason ... you should definitely take note of the usage description. It says that you have to change a variable value in your "custom.config.php" file before you do so - did you do it?
The description also says, that before you call "echo $form->renderResources();" you must first create your Form object instance. This should be done like this:
Code:
$form = $imforms->getForm('contact');
- did you do it?
Besides, after all those years of using CMS, you should know by now that a "white page" usually always means a fatal error. Therefore, in that case, you should always comment out "define('GSDEBUG', TRUE);" line in "gsconfig.php". So you would already know the issue and point it out to me - your problem would be solved in 2 minutes.