Elxis CMS Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: EDC: Download extensions for Elxis 4.x
 
Pages: [1]
  Print  
Author Topic: e-form custom input names  (Read 2453 times)
e-isodos
Jr. Member
**
Offline Offline

Posts: 69


« on: May 05, 2012, 12: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.
Logged
webgift
Elxis Team
Hero Member
*****
Offline Offline

Posts: 3270



WWW
« Reply #1 on: May 07, 2012, 08: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.
Logged

e-isodos
Jr. Member
**
Offline Offline

Posts: 69


« Reply #2 on: May 07, 2012, 14: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?
Logged
e-isodos
Jr. Member
**
Offline Offline

Posts: 69


« Reply #3 on: May 07, 2012, 14:29:49 »

And one more question, how to change the format of the date, so it will have the format "dd/mm/yyyy)
Logged
e-isodos
Jr. Member
**
Offline Offline

Posts: 69


« Reply #4 on: May 10, 2012, 04:15:38 »

anyone?
Logged
webgift
Elxis Team
Hero Member
*****
Offline Offline

Posts: 3270



WWW
« Reply #5 on: May 10, 2012, 08: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'); }
Wink
Logged

e-isodos
Jr. Member
**
Offline Offline

Posts: 69


« Reply #6 on: May 10, 2012, 20:39:46 »

THANK YOU FOR YOUR ANSWER.
DO YOU KNOW ANY OTHER WAY TO BUILD FORMS IN ELXIS WITH MORE CUSTOMATION (INPUT NAMES)?
Logged
webgift
Elxis Team
Hero Member
*****
Offline Offline

Posts: 3270



WWW
« Reply #7 on: May 11, 2012, 08: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.
Logged

Pages: [1]
  Print  
 
Jump to: