-
AuthorPosts
-
December 1, 2016 at 9:47 am #719156
Ahoy,
I would like to have mandatory fields but do not want the asterisk, how do I make them hidden?
December 1, 2016 at 10:07 am #719164if you have not marked the field: “Hide Form Labels” it is simple:
abbr.required { display: none; }
but if so i have to look deeper in code.
December 1, 2016 at 11:36 am #719186on class-form-generator.php there is this required set in two different ways – the one by an extra element with class required for the case of not hiding labels.
the second is to set a string$extra="*"
this is set 4times and if you like to change you can insert for example$extra=" "
maybe there is a fast way over functions.php of the child-theme to set a variable globaly to a valueDecember 2, 2016 at 8:20 am #719551That quick CSS does not work
please advise
December 5, 2016 at 10:06 am #720383Hi,
As I wrote in your other thread; your site might have been compromised.
Best regards,
RikardDecember 5, 2016 at 7:35 pm #720635Here is the updated site
December 5, 2016 at 8:02 pm #720646Hi!
Please go to enfold/framework/php/class-form-generator.php file and replace its content with this one – http://pastebin.com/SdiZ8kGd
Cheers!
YigitDecember 6, 2016 at 2:23 am #720775Thanks Yigit,
How do I add that if I have a child theme?
December 6, 2016 at 3:34 am #720792Hi,
Please copy unmodified enfold/framework/php/class-form-generator.php file and paste it inside enfold-child folder and find following at the top and remove it (please do not remove PHP opening tag)
if ( ! defined( 'AVIA_FW' ) ) exit( 'No direct script access allowed' );
and then add following code to Functions.php file of your child theme
require( 'class-form-generator.php' );
Best regards,
YigitNovember 15, 2018 at 6:32 pm #1034067Hi guys,
I actually would like to have a NON mandatory field, hence without the *.How can I do that?
Thanks,
MarcoNovember 19, 2018 at 5:59 am #1035022Hi,
Set the form element’s “Form Element Validation” settings to “No Validation”.
Best regards,
IsmaelNovember 19, 2018 at 12:01 pm #1035139Hi Ismael,
I am using the default editor, hence I do not see any graphic, I only see short codes.
Example:This is the field I would need to have not mandatory
[av_contact_field label='Message' type='textarea' check='is_empty' options='' multi_select='' av_contact_preselect='' width='' av_uid='av-h5d55n'][/av_contact_field]
[/av_contact]Thanks,
MarcoNovember 20, 2018 at 7:37 am #1035451Hi,
Remove the “check” parameter or adjust it from:
check='is_empty'
to:
check=''
Best regards,
IsmaelNovember 22, 2018 at 3:14 am #1036370Amazing thank you so much Ismael
November 22, 2018 at 11:47 am #1036464Hi,
Awesome! Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
Don’t forget to bookmark Enfold Documentation for future reference.Thank you for using Enfold :)
Best regards,
Ismael -
AuthorPosts
- The topic ‘Remove validation asterisk from contact form element’ is closed to new replies.