Forum Replies Created
- AuthorPosts
- January 9, 2019 at 8:20 am in reply to: Clear Element value when the element is hided by conditional logic #28176
Venom
ParticipantHi Ally,
Nice solution, Please mark it as resolved.
Regards,
Venom
Venom
ParticipantHi Ally,
I found it. Great feature.
Regards,
Venom
Venom
ParticipantHi Ally,
Refer to the Change log 2.6, Added a resend notification feature to the view entry page
May I know the location for clicking the “Resend notification”, i could not find it even I updated it to latest v2.6 in both view entry or edit entry page.Regards,
VenomDecember 4, 2018 at 12:52 am in reply to: Customize notification email for multiple recipients #27955Venom
ParticipantHi Ally,
If I use the quform_post_process hook, is it still possible to get the notification object and existing mail setting object? I need to send the email enclosed with the attachment added in the notification setting.
$config = $notification->getDefaultConfig();
$attachments = $notification->config('attachments');
foreach ($attachments as $attachment) {
if (is_array($attachment['media'])) {
foreach ($attachment['media'] as $medium) {
$post = get_post($medium['id']);if ($post instanceof WP_Post && $post->post_type == 'attachment') {
$file = get_attached_file($post->ID);if (is_file($file)) {
$config['attachments'][] = $file;
}
}
}
}
}
Regards,
Venom
Venom
ParticipantHi Ally,
Thank you for your information.
Is there any workaround that I can alter the export order? I want to put the last column to be the first
when it is exported.Regards,
Venom
Venom
ParticipantHi Ally,
I want to know the status for sortable for field list, is it available in latest version?
Regards,
Venom
Venom
ParticipantHi,
I want to propose a workaround for adding support multi language for fields or labels.
A shortcode would be created to surround the Quform that will act as global string replacement for the form before rendering at the client side. I am using WPML, therefore, I could retrieve the current language running apply_filters( ‘wpml_current_language’, NULL );
[eventitect_i18n_replace]
[quform id="XX" name="Form Name"]
[/eventitect_i18n_replace]function strip_tag($str_text, $tag){ $regex = '~\['.$tag.'[^]]*\](.+?)\[/'.$tag.'\]~'; $str_text = preg_replace($regex, '$1', $str_text); return $str_text; } function replace_tag_content($str_text, $tag, $replacement) { $reg_str = '/\['.$tag.'\](.*)\[\/'.$tag.'\]/U'; preg_match_all ($reg_str, $str_text, $pat_array); foreach($pat_array[0] as $val) { $str_text = str_replace($val,$replacement,$str_text); } return $str_text; } function eventitect_i18n_replace($atts = [], $content = null, $tag = ''){ $lang_current = apply_filters( 'wpml_current_language', NULL ); $return_string = do_shortcode($content); if($lang_current == 'zh-hant'){ $return_string = replace_tag_content($return_string , 'en', ''); $return_string = strip_tag($return_string , 'tw'); }else if($lang_current == 'en'){ $return_string = replace_tag_content($return_string , 'tw', ''); $return_string = strip_tag($return_string , 'en'); } return $return_string; } add_shortcode('eventitect_i18n_replace', 'eventitect_i18n_replace');
Would it be easier to implement this feature to the Quform for future version?
Regards,
Venom
- This reply was modified 6 years, 11 months ago by
Venom.
Attachments:
You must be logged in to view attached files.Venom
ParticipantVenom
ParticipantHi
If you need to handle the field inside PHP like below, I don’t have any workaround so far to get the form field’s value.
$form->getValue(‘quform_1_6’);However, for other place like css, js, I would rather make use of the Custom CSS class field. If I have to add some frontend validation logic to the field “quform_1_6” as telephone, I would add “form_telephone” to the Custom CSS class field. Then I don’t need to worry ‘quform_1_6’ or quform_1_18 anymore.
Use the jQuery syntax to get the field in javascript
$(‘.form_telephone’).hide();Venom
ParticipantHi,
Below is my workaround for the export and import the same form to keep the same ID from one environment to another environment :
1-> go to phpMyAdmin
2-> Select table wp_quform_forms
3-> Go to Operations Tab
4-> Change the Auto_increment to the ID that you want to be , before doing that, you have to make sure the target Form ID is has been deleted.5-> Then import the Form again. Done.
Regards,
VenomVenom
ParticipantHi
It would be great if Quform support data encryption for field value saved in database.
Currently, I have tried to implement it by altering the core files in Quform and using another wordpress Plugin Gravitate Encryption. Two new filter hooks are added to the core files of Quform, see attachments.
The RSA asymmetric key is managed by Gravitate Plugin.
Add following code the the function.php or custom plugin for Form to encrypt those fields using RSA public key.
function ait_quform_decrypt_field($value){
if(class_exists(‘GDS_Encryption_Class’))
{
$GDS_Encryption = new GDS_Encryption_Class();
$decrypt_value = $GDS_Encryption->decrypt($value);
return $decrypt_value;
}
return $value;
}add_filter(‘ait_quform_decrypt_field_value’, ‘ait_quform_decrypt_field’);
function ait_quform_encrypt_field($value){
//skip email for encryption
if(filter_var($value, FILTER_VALIDATE_EMAIL)){
return $value;
}
if(class_exists(‘GDS_Encryption_Class’))
{
$GDS_Encryption = new GDS_Encryption_Class();
$encrypt_value = $GDS_Encryption->encrypt($value);
return $encrypt_value;
}
return $value;
}add_filter(‘ait_quform_encrypt_field_value’, ‘ait_quform_encrypt_field’);
`
- This reply was modified 7 years, 2 months ago by
Venom.
Attachments:
You must be logged in to view attached files.April 20, 2018 at 3:34 am in reply to: Need Immediate Help – QuForms seems to have installed Trojan #25074Venom
Participantit seems like the class.plugin-modules.php file was injected on 11 Apr.
You might refer to the url below to track those access or error logs to find the traces. https://www.acunetix.com/blog/articles/using-logs-to-investigate-a-web-application-attack/
Venom
ParticipantHi Ally,
Thank you for your information. Attached please find the screen captures for your reference. Please point out my mistake.
Regards,
Venom
Attachments:
You must be logged in to view attached files.March 15, 2018 at 8:42 am in reply to: Calendar Date Picker not allow to change to another date in the same month #24688Venom
ParticipantHi Ally,
I have another plugin Spider Event Calendar installed. Once I deactivated this plugin, the problem was resolved.
Regards,
Venom
Venom
ParticipantI found a way to handle the tab order for column layout.
Instead of adding all Field 1 to Field 4 to a single Column layout, I separated it to few column layout and it works nicely.
Field 1 | Field 2 <– in a 2 column layout
Field 3 | Field 4 <– in a 2 column layoutCheers,
Venom
- This reply was modified 6 years, 11 months ago by
- AuthorPosts