Forum Replies Created

Viewing 15 posts - 16 through 30 (of 42 total)
  • Author
    Posts
  • Venom
    Participant

    Hi Ally,

    Nice solution, Please mark it as resolved.

    Regards,

    Venom

    in reply to: Manually resend notification emails #27994
    Venom
    Participant

    Hi Ally,

    I found it. Great feature.

    Regards,

    Venom

    in reply to: Manually resend notification emails #27985
    Venom
    Participant

    Hi Ally,

    Refer to the Change log 2.6, Added a resend notification feature to the view entry page

    Changelog


    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,
    Venom

    in reply to: Customize notification email for multiple recipients #27955
    Venom
    Participant

    Hi 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

    in reply to: How to re-organize fields in Export #26813
    Venom
    Participant

    Hi 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

    in reply to: How to re-organize fields in Export #26788
    Venom
    Participant

    Hi Ally,

    I want to know the status for sortable for field list, is it available in latest version?

    Regards,

    Venom

    in reply to: Translate Form Label. #26377
    Venom
    Participant

    Hi,

    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.
    in reply to: Avoid sending form by hitting return key #26366
    Venom
    Participant

    Hi,

    You might check out this thread

    Disable Return/Enter button as way to submit form?

    regards,
    Venom

    in reply to: Improve the tool as well as the unique id #26295
    Venom
    Participant

    Hi

    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();

    in reply to: Improve the tool as well as the unique id #26223
    Venom
    Participant

    Hi,

    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,
    Venom

    in reply to: Suggestions & Ideas #25216
    Venom
    Participant

    Hi

    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.
    Venom
    Participant

    it 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/

    in reply to: Date field format #24748
    Venom
    Participant

    Hi 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.
    Venom
    Participant

    Hi Ally,

    I have another plugin Spider Event Calendar installed. Once I deactivated this plugin, the problem was resolved.

    Regards,

    Venom

    in reply to: Form field tabindex order in column layout #24544
    Venom
    Participant

    I 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 layout

    Cheers,

    Venom

Viewing 15 posts - 16 through 30 (of 42 total)
Be inspired. © 2025 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy