Elxis CMS Forum

Extensions => Bots and plugins => Topic started by: bledi on January 28, 2018, 16:00:43

Title: Anyform plugin
Post by: bledi on January 28, 2018, 16:00:43
Hello
I am trying to create a form of terms and consitions accept using a email form.
I need that the contract or terms and conditions to be part of the input item form, so to receive it in the email together wit the other items name, telephone, email etc..
I was trying "custom item"  none of the items can include the contract itself (2 pages) to be input form element. Is rhat any way to do that
Thanks in advance
Title: Re: Anyform plugin
Post by: datahell on January 30, 2018, 22:46:06
"custom" form type is only to display html code inside form. You cannot get this text in the email. You only get as result the input form elements like text, select, radio, etc. I trick that you can try is to write the terms inside a "textarea" element and hide it with css.

<item type="textarea" name="comments" label="Terms and Conditions" default="" tip="" class="elx_invisible"><![CDATA[Blah blah blah]]></textarea>
Title: Re: Anyform plugin
Post by: Blacksoll on April 05, 2018, 08:43:39
Another issue i have with anyform :

In .xml i put at label="my custom title is too big & when i sudmit form i get email with only some characters and not complete title of the form"

Where can i change the number of characters that form sends for label title ?
Title: Anyform plugin - Form resubmission control
Post by: nikos on April 06, 2018, 00:45:48
In a form published only for registered users, I would like to control if it has been submitted by a user so in case that the user attempts to resubmit the same form, to see a message "you have already submitted this form".

Is it possible to include this useful option in a next plugin update?
Title: Re: Anyform plugin
Post by: datahell on April 09, 2018, 10:58:29
@Blacksoll: This is not an AnyForm issue. RFC2822 says that the e-mail subject length should not be more than 78 characters per line. Different mail clients may handle this restriction differently.
Title: Re: Anyform plugin
Post by: datahell on April 15, 2018, 11:07:04
I post a reply of a PM here for anyone interested in.
By default AnyForm does not allow "questions" of more than 25 characters in email texts.  If more than 25 characters is strips them to 25 characters. To change this open this file:

components/com_content/plugins/anyform/anyform.plugin.php

go at the end of file in line 1411 and change this:
$text .= eUTF::substr($left_string, 0, $left_width).':';

to this:
$text .= $left_string.":\n";
Title: Re: Anyform plugin
Post by: Blacksoll on April 15, 2018, 21:11:51
Since my first post here, back in 2006, Datahell and all the other guys are here to deliver excellent support !!!
This is what makes a product great !

You really came through, proving what it means to be a "team player."

Thank You for your help!
 ;)