Themler Form for Database input ??

MJ68
41 Posts
MJ68 posted this 06 September 2016

Hi,
i want to create an Form with Themler to fill Datas into Database Table.
The Form in Themler will be only are Design without Code?
Type => when the Table Field will be INT, Double?
ID => when ID is the same of the Table Field ID?
Name => ??
Value => Standard Value it will be mean?
Placeholder => Placeholder in Inputflied (OK i know)
Maximum length => maximumlength of the inpul field?
Text => Label Text over the input Filed (OK i used)

When i have done, how i can place the code for working?

Thanks
Michael

ThemlerForm.PNG

Hi, i want to create an Form with Themler to fill Datas into Database Table. The Form in Themler will be only are Design without Code? Type => when the Table Field will be INT, Double? ID => when ID is the same of the Table Field ID? Name => ?? Value => Standard Value it will be mean? Placeholder => Placeholder in Inputflied (OK i know) Maximum length => maximumlength of the inpul field? Text => Label Text over the input Filed (OK i used) When i have done, how i can place the code for working? Thanks Michael !ThemlerForm.PNG!
Vote to pay developers attention to this features or issue.
5 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 06 September 2016

Hi,

Please refer to the following link, hope it will help:
http://answers.themler.com/articles/71585/form

Sincerely,
Hella

Hi, Please refer to the following link, hope it will help: http://answers.themler.com/articles/71585/form Sincerely, Hella
MJ68
41 Posts
MJ68 posted this 11 September 2016

Hi Hella,

thanks for the informations, but it will not work.
Here are some Settings perhaps you can see why i will not work?

Forms:
Name: person-datas
Action: /wordpress/wp-content/plugins/myplugin/include/person_datas.php
Method: Post
Mode: Default

Input1:
Type: Numbers
ID: body_height
Name: body_height
Placeholder: in cm
Maximum length: 3
Text: Body height
Show Label: on

Input2:
Type: Numbers
ID: body_weight
Name: body_weight
Placeholder: in kg
Text: Body weight
Show Label: on

Button:
Text: send Data
Name: sender
Submit button: on

After i push send then it will be go to the start Page.
No Request from my script bell be shown and nothing else will be done from my script.

The Script will be work, but the small HTM Script will done very well.

HTML Script instead of Themler Form

<!DOCTYPE html>

<html>

<head>
    <title>Person Datas</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
    <p>Fill out your Body Datas.</p>
    <form action="/wordpress/wp-content/plugins/fitnesstagebuch/include/person_datas.php" method="post">
        <p><input name="body_height" /> Body height</p>
        <p><input name="body_weight" /> Body weight</p>
        <p>
            <input type="submit" name="sender" value="send" />
            <input type="reset" value="Daten zur├╝cksetzen" />
        </p>
    </form>
</body>

Thanks
M.

Hi Hella, thanks for the informations, but it will not work. Here are some Settings perhaps you can see why i will not work? Forms: Name: person-datas Action: /wordpress/wp-content/plugins/myplugin/include/person_datas.php Method: Post Mode: Default Input1: Type: Numbers ID: body_height Name: body_height Placeholder: in cm Maximum length: 3 Text: Body height Show Label: on Input2: Type: Numbers ID: body_weight Name: body_weight Placeholder: in kg Text: Body weight Show Label: on Button: Text: send Data Name: sender Submit button: on After i push send then it will be go to the start Page. No Request from my script bell be shown and nothing else will be done from my script. The Script will be work, but the small HTM Script will done very well. HTML Script instead of Themler Form <!DOCTYPE html> &lt;html&gt; <head> <title>Person Datas</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <p>Fill out your Body Datas.</p> <form action="/wordpress/wp-content/plugins/fitnesstagebuch/include/person_datas.php" method="post"> <p><input name="body_height" /> Body height</p> <p><input name="body_weight" /> Body weight</p> <p> <input type="submit" name="sender" value="send" /> <input type="reset" value="Daten zurücksetzen" /> </p> </form> </body> Thanks M.

Last edited 11 September 2016 by MJ68

Support Team
Support Team posted this 12 September 2016

Hi,

It's difficult to say why it does not work because I don't know what your action file do and what it needs.
Here is what I can suggest:

  1. make sure that the action file really sends data to database and it works with own forms (looks like this is WP plugin)
  2. make sure that the final path to the action file is correct. You're using relative path. It could be wrong. Please try absolute path for testing.

Thank you,
Olivia

Hi, It's difficult to say why it does not work because I don't know what your action file do and what it needs. Here is what I can suggest: 1. make sure that the action file really sends data to database and it works with own forms (looks like this is WP plugin) 2. make sure that the final path to the action file is correct. You're using relative path. It could be wrong. Please try absolute path for testing. Thank you, Olivia
MJ68
41 Posts
MJ68 posted this 15 September 2016

Thank you now it will be work.

  1. Button Value
    It is possible to define a Valle for the submit Button?

  2. when i fill our the Form and submit it, the screen will be Chancen and the Output from the Script will be Seen. I want only to fill our Databases with the Form.
    It is possible to fill our the Form, submit the datas and reload the Form with the datas from the Database, Looks like a Settings Page ?

Thanks
Michael

Thank you now it will be work. 1. Button Value It is possible to define a Valle for the submit Button? 2. when i fill our the Form and submit it, the screen will be Chancen and the Output from the Script will be Seen. I want only to fill our Databases with the Form. It is possible to fill our the Form, submit the datas and reload the Form with the datas from the Database, Looks like a Settings Page ? Thanks Michael
Support Team
Support Team posted this 15 September 2016

Hi,

  1. Themler creates the Submit button as link with onclick event. Link does not have value attribute. But you can rename button on the ribbon by clicking on the button control.

  2. Unfortunately I'm not quite understand what exactly you want to achieve. But the form does not control its behaviour after submit. It should be controlled by the action script you're using for the form.

Thank you,
Olivia

Hi, 1. Themler creates the Submit button as link with onclick event. Link does not have value attribute. But you can rename button on the ribbon by clicking on the button control. 2. Unfortunately I'm not quite understand what exactly you want to achieve. But the form does not control its behaviour after submit. It should be controlled by the action script you're using for the form. Thank you, Olivia

Last edited 15 September 2016 by Support Team

You must log in or register to leave comments