Skip to content

v5.0.020

Choose a tag to compare

@RensTillmann RensTillmann released this 15 Oct 14:59

Oct 15, 2021 - Version 5.0.020

  • Added: Listings Add-on display entries on front-end, more info here (https://renstillmann.github.io/super-forms/#/listings-add-on)

  • Added: New element HTML Elements > PDF Page Break for PDF Generator Add-on, which allows you to start a new page after a specific element. You can also switch between orientation Portrait and Landscape if needed.

  • Added: New file upload system, file upload element will now display image/document in thumbnail preview before it's being uploaded to the server, they will also be visible in the generated PDF PDF Generator Add-on

  • Added: New tags for file upload element, can be used inside HTML element on front-end and inside E-mail body

    • {fieldname} (retrieve list with file name(s))
    • {fieldname;count} (retrieve total amount of files connected to this file upload element)
    • {fieldname;new_count} (retrieve total amount of files that are yet to be uploaded)
    • {fieldname;existing_count} (retrieve total amount of files already/previously uploaded)
    • {fieldname;url} (retrieve file "blob" or "URL")
    • {fieldname;size} (retrieve file size)
    • {fieldname;type} (retrieve file type)
    • {fieldname;name} (retrieve file name)
    • {fieldname;ext} (retrieve file extension)
    • {fieldname;attachment_id} (retrieve file ID after file has been uploaded when form is submitted)
    • {fieldname;url[2]} (retrieve specific file data, this example retrieves the third file URL if it exists based on array index)
    • {fieldname;allFileNames} (retrieve list with all file names, it's possible to filter this list with filter hook: super_filter_all_file_names_filter
    • {fieldname;allFileUrls} (retrieve list with all file URLs, it's possible to filter this list with filter hook: super_filter_all_file_urls_filter
    • {fieldname;allFileLinks} (retrieve list with a link to the file, it's possible to filter this list with filter hook: super_filter_all_file_links_filter
  • Added: Compatibility for file upload with foreach loop inside HTML element and E-mail body example:

    foreach(fileupload_field_name_here;loop):
        <strong>Name (<%counter%>):</strong> <%name%><br />
        <strong>URL (<%counter%>):</strong> <%url%><br />
        <strong>Extension (<%counter%>):</strong> <%ext%><br />
        <strong>Type (<%counter%>):</strong> <%type%><br />
        <strong>ID (<%counter%>):</strong> <%attachment_id%><br />
    endforeach;
  • Added: New option under global settings Super Forms > Settings > WooCommerce My Account Menu Items to add custom menu items with custom content/shortcode or a custom URL to redirect to a custom page. This allows you to display any extra content for the /my-account page. For instance you could list contact entries with the use of the Listings Add-on on the My Account page. Since you can use shortcodes you could also use it for other usecases that are not even related to Super Forms.

  • Added: Option to override form settings via shortcode attribute e.g: [super_form id="54903" _setting_retrieve_last_entry_data="false"] would override the option defined under Form Settings > Form Settings > Retrieve form data from users last submission. This allows you to have a single form to maintain while having seperate forms with slightly different settings/options defined. If you don't know the key of a settings just submit a ticket. But most settings can be found in the file includes/class-settings.php

  • Added: Option to define colors for Dropdowns via Form Settings > Theme & Colors

  • Added: Option to define colors for Tooltips via Form Settings > Theme & Colors

  • Added: Option to define colors for Calculator element (Calculator Add-on) via Form Settings > Theme & Colors

  • Added: {user_last_entry_status_any_form} tag to retrieve the latest contact entry status of the logged in user for any form

  • Added: {user_last_entry_id_any_form} tag to retrieve the latest contact entry ID of the logged in user for any form

  • Added: New filter hook super_attachments_filter to alter/add/delete the email attachments

  • Added: MailChimp Add-on escape html in output message and replace psuedo after/before elements with normal DOM element

  • Added: New tags to be used inside E-mails {_generated_pdf_file_label}, {_generated_pdf_file_name}, {_generated_pdf_file_url} allows you to retrieve the Generated PDF url so you can create a button that links to the file for download

  • Added: New actions Prev/Next Multipart/Step for Button element to have more control over when to show the Previous / Next buttons in a multi-part element.

  • Added: New filter hook super_form_enctype_filter to alter the form enctype attribute which defaults to multipart/form-data

    add_filter( 'super_form_enctype_filter', 'f4d_change_enctype', 10, 2 );
    function f4d_change_enctype($enctype, $attr){
        return 'application/x-www-form-urlencoded':
    }
  • Improved: Created a new Tabbing system (TAB/Shift TAB) to navigate through all elements properly and allow to select/deselect items such as radio/checkbox/dropdown items

  • Improved: Front-end posting Add-on - create connection between created post and contact entry by storing the ID as meta data

  • Fix: PDF Generator Add-on option to exclude generated PDF from contact entry not working

  • Fix: When switching language through language switcher, preserver URL parameters so that the form is populated with data after switching language

  • Fix: Front-end Register & Login Add-on when using language switcher, make sure the code parameters is preserverd (for account/email verifications)

  • Fix: Front-end Posting Add-on issue with saving google map data for ACF map field

  • Fix: Signature Add-on fix issue when clicking on canvas would create a vertical line instead of a small dot

  • Fix: WooCommerce Checkout Add-on issue with External/Affiliate product URL being reset to the product permalink

  • Fix: WooCommerce Checkout Add-on bug with shortcodes of other plugins not being able to list/retrieve products due to a bug in the new setting option Super Forms > Settings > WooCommerce Checkout > Hide products from the shop

  • Fix: Zapier Add-on use numbered index instead of filenames as index for the array, otherwise you would not be able to map/retrieve the file within zapier interface

  • Fix: Possible RCE (Remote Code Exectuion) vulnerability in old file upload system (doesn't affect most servers, but it's recommended to update to the latest version anyway)