Advancedform - reference number

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

olape
Posts: 2731
Joined: Fri Mar 13, 2015 8:47 am
Contact:

Re: Advancedform - reference number

Post by olape » Wed Nov 09, 2022 12:51 pm

bastingse wrote:
Wed Nov 09, 2022 12:20 pm
I got it work and the webmaster is receiving an email with the 'time' field', but the sender does not receive that information in his mail
olape wrote:
Wed Nov 02, 2022 1:23 pm
I do not know whether the sender would receive them.
As the recipient, you also get the hidden fields.
As a hidden field?
Have you tried to use "Time" as a normal text field?
Gruß Olaf, Plugins for CMSimple_XH

Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.

lck
Posts: 2963
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Advancedform - reference number

Post by lck » Wed Nov 09, 2022 12:57 pm

olape wrote:
Wed Nov 09, 2022 12:51 pm
As a hidden field?
Hidden fields are not delivered to the sender!
olape wrote:
Wed Nov 09, 2022 12:51 pm
Have you tried to use "Time" as a normal text field?
Or as Number and it must be a required field.
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

bastingse
Posts: 308
Joined: Fri Jun 06, 2008 9:38 pm
Location: Netherlands
Contact:

Re: Advancedform - reference number

Post by bastingse » Wed Nov 09, 2022 1:00 pm

If using a text or number field, then that is visible to the sender when they fill in the form....

olape
Posts: 2731
Joined: Fri Mar 13, 2015 8:47 am
Contact:

Re: Advancedform - reference number

Post by olape » Wed Nov 09, 2022 1:03 pm

bastingse wrote:
Wed Nov 09, 2022 1:00 pm
If using a text or number field, then that is visible to the sender when they fill in the form....
You could also hide the field via css
Gruß Olaf, Plugins for CMSimple_XH

Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.

bastingse
Posts: 308
Joined: Fri Jun 06, 2008 9:38 pm
Location: Netherlands
Contact:

Re: Advancedform - reference number

Post by bastingse » Wed Nov 09, 2022 1:06 pm

olape wrote:
Wed Nov 09, 2022 1:03 pm
You could also hide the field via css
That sounds interesting !!!

lck
Posts: 2963
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Advancedform - reference number

Post by lck » Wed Nov 09, 2022 5:44 pm

bastingse wrote:
Wed Nov 09, 2022 1:06 pm
olape wrote:
Wed Nov 09, 2022 1:03 pm
You could also hide the field via css
That sounds interesting !!!
Do you need help with this or can you do it on your own?
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

bastingse
Posts: 308
Joined: Fri Jun 06, 2008 9:38 pm
Location: Netherlands
Contact:

Re: Advancedform - reference number

Post by bastingse » Wed Nov 09, 2022 6:34 pm

i don't think i can do this myself, so if you can help me on this that would be much appreciated!!!

lck
Posts: 2963
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Advancedform - reference number

Post by lck » Wed Nov 09, 2022 6:50 pm

If you haven't created a template from the form (myform) yet, then you can do it via:

Code: Select all

form[name="myform"] table tr:last-of-type {
	display: none;
}
Important, the reference number field must be at the end of the form.

Or you can create a template from the form in the configuration under "Mail Forms". Then extend the corresponding div in myform.tpl with a class, e.g. ref-number.

Code: Select all

<div class="break ref-number">
    <div class="label"><label for="advfrm-myform-time">Reference number&nbsp;<span style="color:red">*</span></label></div>
    <div class="field"><?field time?></div>
  </div>
Then open the folder data/css/myform.css and insert the following in a suitable place.

Code: Select all

#advfrm-myform div.break.ref-number {
	display: none;
}
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

bastingse
Posts: 308
Joined: Fri Jun 06, 2008 9:38 pm
Location: Netherlands
Contact:

Re: Advancedform - reference number

Post by bastingse » Fri Nov 11, 2022 12:51 pm

Thanks a lot for thinking with me to get this done!

I get a refeerence number now in a textfield (timestamp). But i can't get it to hide. For me, now this is okay!!

olape
Posts: 2731
Joined: Fri Mar 13, 2015 8:47 am
Contact:

Re: Advancedform - reference number

Post by olape » Fri Nov 11, 2022 1:09 pm

bastingse wrote:
Fri Nov 11, 2022 12:51 pm
I get a refeerence number now in a textfield (timestamp). But i can't get it to hide. For me, now this is okay!!
Is there a link where you can look at the site?
Gruß Olaf, Plugins for CMSimple_XH

Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.

Post Reply