Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ImForms
#26
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.
Reply
#27
I'm so glad there is a new form extension for GetSimple, thank you!

It is missing translations. Here are my translations for German and French, only for the frontend. And a few corrections in the English file.


Attached Files
.php   de_DE.php (Size: 4.32 KB / Downloads: 1)
.php   fr_FR.php (Size: 4.36 KB / Downloads: 1)
.php   en_US.php (Size: 4.24 KB / Downloads: 1)
Reply
#28
And a small bug: When not checking the reCaptcha, the message "Please complete the reCAPTCHA below!" appears twice
Reply
#29
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
Reply
#30
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?
Reply
#31
It's probably a bug, when I get time, I'll look into it - thank you!
Reply
#32
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:
  1. First, go to the ImForms menu and create a new form called contact_de or contact_fr, for example.
  2. 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.
  3. After that you have to rename the forms so that they can be accessed in the frontend.
Reply
#33
How can I call a sub site of GS in a form action? I tried it with the following code:

<form action="http://localhost/GetSimpleCMS/index.php?id=test"><input name="" required="" type="checkbox" value="" />Bestätigung<br />
<input type="submit" />&nbsp;</form>

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.
Reply
#34
Hi,
can you see in browser console whether the action attribute of the form is filled in?
Maybe it's another bug, I'll check it out, thx!
Reply
#35
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.
Reply
#36
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.
Reply
#37
Another question:
If I try to insert a html source code in a new site in GS and I save the site the system change the code. Why?
Reply
#38
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.
Reply
#39
Another question:
If I try to insert a html source code in a new site in GS and I save the site the system change the code. Why?
Reply
#40
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. Sad
Reply
#41
Can you give an example of source code that get's destroyed after enabling ckeditor?
Reply
#42
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">
Reply




Users browsing this thread: 1 Guest(s)