Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
nz-photo
Experienced
Topic Author
Posts: 248
Joined: 06 Dec 2007, 17:26

Editing 'contact form' text

21 Dec 2014, 10:28

the text inside the form boxes.
Name
email
What's up ?

I found how to do that for the mega menu (widget contact) but don't know where to edit for the [contact] insert in page...
Empty your mind, be formless, be shapeless, like water...
www.nz-photo.com
 
margouillat
Experienced
Posts: 34
Joined: 31 Jul 2011, 09:20

Re: Editing 'contact form' text

21 Dec 2014, 11:04

have you watched here in the menu :
Content/custom/mail
Margouillat
loeildumargouillat.fr
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Editing 'contact form' text

21 Dec 2014, 11:04

The point of having it editable for the menu widget, unlike your contact form on a normal page, is because the form can't be added from any content section when used the menu. For your page, the [contact] shortcode is basically just a shortcut for the following code that you can also add manually into any page:
Code
<form data-abide class=contactform>
<div class=honey>
<input type=text class=honey1 name=honey1 placeholder=honey1>
</div>
<div class=honey>
<input type=text class=honey2 name=honey2 placeholder=honey2 value=googooforgaga>
</div>
<div>
<input required type=text name=name placeholder=Name>
</div>
<div>
<input required type=email name=email placeholder=Email>
</div>
<div>
<textarea required rows=6 name=message placeholder='What's up?'></textarea>
</div>
<button type=submit>Send</button>
</form>
Not making this accessible for editing from some custom editor, is because 1) Unlike the menu contact form, it can already be added manually like in the above. 2) Requiring users to add all the elements above for a simple form, without making any typos, including the hidden anti-spam fields, is a challenge, and would surely cause problems 3) Since X3 does not include an automatic form-creator from anything form elements you add, it does not make much sense to require the code above instead of [contact]. 4) Easier form creation- and integration will come, at some point down the road!! Thnx.
 
User avatar
nz-photo
Experienced
Topic Author
Posts: 248
Joined: 06 Dec 2007, 17:26

Re: Editing 'contact form' text

21 Dec 2014, 11:20

Thanks for the quick infos Karl !
I was just thinking about editing the 'what's up?' part but no prob.
It was just because i couldn't find anywhere to edit it.
So I will use the detailed code (edit: it works like a charm ;) )
Have a nice evening!
Empty your mind, be formless, be shapeless, like water...
www.nz-photo.com
 
User avatar
masquefotos
Experienced
Posts: 140
Joined: 20 May 2011, 05:38

Re: Editing 'contact form' text

21 Feb 2015, 17:09

Can add another field such as phone?
And if so, how would the code?
Gracias
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Editing 'contact form' text

21 Feb 2015, 22:00

masquefotos wrote:Can add another field such as phone?
And if so, how would the code?
This is not yet possible, because it requires a script that can process and send any custom items that you add to the form. We will be adding this soon!
 
User avatar
zuro
Experienced
Posts: 55
Joined: 24 Jan 2011, 12:04

Re: Editing 'contact form' text

23 Apr 2015, 05:00

mjau-mjau wrote:The point of having it editable for the menu widget, unlike your contact form on a normal page, is because the form can't be added from any content section when used the menu. For your page, the [contact] shortcode is basically just a shortcut for the following code that you can also add manually into any page:
Code
<form data-abide class=contactform>
<div class=honey>
<input type=text class=honey1 name=honey1 placeholder=honey1>
</div>
<div class=honey>
<input type=text class=honey2 name=honey2 placeholder=honey2 value=googooforgaga>
</div>
<div>
<input required type=text name=name placeholder=Name>
</div>
<div>
<input required type=email name=email placeholder=Email>
</div>
<div>
<textarea required rows=6 name=message placeholder='What's up?'></textarea>
</div>
<button type=submit>Send</button>
</form>
Not making this accessible for editing from some custom editor, is because 1) Unlike the menu contact form, it can already be added manually like in the above. 2) Requiring users to add all the elements above for a simple form, without making any typos, including the hidden anti-spam fields, is a challenge, and would surely cause problems 3) Since X3 does not include an automatic form-creator from anything form elements you add, it does not make much sense to require the code above instead of [contact]. 4) Easier form creation- and integration will come, at some point down the road!! Thnx.
Where insert code ? In Contact page content ?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

Re: Editing 'contact form' text

23 Apr 2015, 05:08

zuro wrote:Where insert code ? In Contact page content ?
Exactly.

Make sure to keep the two-space indentation correct when pasting into the "content" so you don't get a "parse" error. Sorry, this content editing annoyance will be fixed shortly, so it is easier to write and paste content.
 
User avatar
zuro
Experienced
Posts: 55
Joined: 24 Jan 2011, 12:04

Re: Editing 'contact form' text

23 Apr 2015, 14:45

Works like a charm.
Thanks !!!