Elxis CMS Forum

Ελληνικό Forum => Δημόσιο Βήμα => Topic started by: e-isodos on May 05, 2012, 13:43:55

Title: e-form custom input names
Post by: e-isodos on May 05, 2012, 13:43:55
Hi,
I want to make a form with eforms, but I want the input names to be custom and not formname1, 2, 3 etc.
Is there a way to do it?
Is there a way to have the input names inside the xml file. That will be the best solution.
Title: Re: e-form custom input names
Post by: webgift on May 07, 2012, 09:59:25
Can you explain us the custom names of the input types? Are you going to use more than 1 {eform}{/eform} tags on your website? You can do that by editing the source code of the bot.
Title: Re: e-form custom input names
Post by: e-isodos on May 07, 2012, 15:28:26
Hi, thank you for your answer.

I am going to use more than one form, but the fileds can have the same name.
This would be :
checkin, checkout, adults, children, rooms
in several languages.
So I am just changing the labels of each form to adjust on each language.
Any suggestions?
Title: Re: e-form custom input names
Post by: e-isodos on May 07, 2012, 15:29:49
And one more question, how to change the format of the date, so it will have the format "dd/mm/yyyy)
Title: Re: e-form custom input names
Post by: e-isodos on May 10, 2012, 05:15:38
anyone?
Title: Re: e-form custom input names
Post by: webgift on May 10, 2012, 09:28:20
No. You can't do that. eForms bot generates certain name for each input. However you can create as many forms you like on each language. Have you seen that documentation about: http://wiki.elxis.org/wiki/Eforms ?
And one more question, how to change the format of the date, so it will have the format "dd/mm/yyyy)
File : mambots/content/eforms.php
Line : 676
Change the line :
if (($field->type == 'date') && ($field->default == '')) { $field->default = date('Y-m-d'); }
to :
if (($field->type == 'date') && ($field->default == '')) { $field->default = date('d-m-Y'); }
;)
Title: Re: e-form custom input names
Post by: e-isodos on May 10, 2012, 21:39:46
THANK YOU FOR YOUR ANSWER.
DO YOU KNOW ANY OTHER WAY TO BUILD FORMS IN ELXIS WITH MORE CUSTOMATION (INPUT NAMES)?
Title: Re: e-form custom input names
Post by: webgift on May 11, 2012, 09:45:13
You are welcome e-isodos.
Can you explain me why do you want to use different input names? Are you going to use 2 different forms on the same article? Are you going to add some javascript code? In any other case i think that you can do that with eForms bot.