karian Posted May 14, 2024 Share Posted May 14, 2024 I develop a website for a client and we use the FormBuilder plugin for hundreds of candidatures. https://regionale.org/ The client complains that the size is wrong when a FormBuilderFile field file size is rendered in the email : Hi Karian Unfortunately I already received worried e-mails from applicants who understand that 1,258 kB is a small number… My question is: can we change it to mega-byte (MB) and if not, could you instead change it from 2,000 to 2’000 → so that the thousand separator is up and not down? Here is my email template : <?php /** * This is the email template used by the 'Email administrators' feature in Form Builder * * CUSTOMIZE * ========= * To customize this email, copy this file to /site/templates/FormBuilder/email-administrator.php and modify it as needed. * It's preferable to do this so that your email template doesn't get overwritten during FormBuilder upgrades. * Inline styles are recommended in the markup since not all email clients will use <style></style> declarations. * * VARIABLES * ========= * @var array $values This is an array of all submitted field values with ('field name' => 'field value') where the 'field value' is ready for output. * @var array $labels This is an array of all field labels with ('field name' => 'field label') where the 'field label' is ready for output. * @var array $formData Raw form data array, which is the same as $values but unformatted and with additional properties like 'entryID' and '_savePage' id. * @var InputfieldForm $form Containing the entire form if you want grab anything else from it. * * */ if(!defined("PROCESSWIRE")) die(); ?><!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title><?php echo $form->name; ?> email</title> </head> <body> <table style='width: 100%; border-bottom: 1px solid #ccc;' cellspacing='0'> <?php foreach($values as $name => $value): ?> <tr> <th class='label' style='width: 30%; text-align: right; font-weight: bold; padding: 10px 10px 10px 0; vertical-align: top; border-top: 1px solid #ccc;'> <?php echo $labels[$name]; ?> </th> <td class='value' style='width: 70%; padding: 10px 0 10px 0; border-top: 1px solid #ccc;'> <?php echo $value; ?> </td> </tr> <?php endforeach; ?> </table> <p><small><?php echo __('Sent at'); ?> • <?php echo date('Y/m/d g:ia'); ?></small></p> </body> </html> If someone has a solution for this issue, that would be awesome ! Link to comment Share on other sites More sharing options...
poljpocket Posted May 15, 2024 Share Posted May 15, 2024 (edited) Since FormBuilder is a paid module, you should seek help in it's forum areas on this website. You need an active license to see the subforum I am talking about. Edited May 15, 2024 by poljpocket Link to comment Share on other sites More sharing options...
karian Posted June 3, 2024 Author Share Posted June 3, 2024 (edited) @poljpocket thanks for you answer, ow I understand that I need an active license to see the subforum ! But I don't have one, I'll ask my client if they want to pay for it... Edited June 3, 2024 by karian Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now