Hello,
1. Whenever page loads, it shows this prompt: "Some values are incorrect"
https://www.znaor.com/calctest
That's happens if I set "Your Name" or Checkbox I agree field to be required.
I need to have both them required and Id to keep "Throws calculate on init page" option activated
Is it possible to exclude these from initial page init on load?
Any suggestions how to fix this issue?
2. Where can I edit email and PDF templates?
- I used bootstrap in Form layout but this doesnt work in email. I need to have three columns
Should I use tables instead of bootstrap template?
3. How to prevent sending empty fields in email? (Or to be shown in PDF)
Currently if field is empty, user gets ##variablename## in email.
Maybe to set up some conditional rules? Examples?
4. What would be the best way to replace default "Send by email to" field at bottom with Custom email field
And custom send email button which is shown next to reset button?
I would like to have all user fields in one area, like: Name, Email, Phone, etc.
And all needed buttons on the bottom
5. Is it possible to have Print button at bottom, like PDF and Excel buttons?
Hello
> This is not supposed to be happening. Empty fields should show as empty text. Please double check your variable namesthat should match exactly with your inputs or calculated outputs.
- But it's happening. I have field variable: b3. I added it in the form layout like this: ##b3##
If I fill it with number I get that number in the email. If I don't fill that field I get this in email: ##b3##
This happens with all fields. Try this demo link and you'll see: https://www.znaor.com/calctest
I used this html table code as form layout
- Also when email is sent all editable fields resets, they gets empty. Except inline calculation fields.
Is it possible to reset those as well? Is it possible to display some message after form is sent or to completely refresh form page?
> CB('').change();
- This doesnt work. I changed it into CB('').change(); in place you told me and when page initialised that field doesn't calculate that inline field.
- Also it would be nice if we could somehow exclude only few fields from first initialisation when page loads.
beause its easier to exclude only few wields compared to adding CB('').change(); rules for many more fields.
Thanks for your inputs
Regards
Edited by Krx - 12.01.2019 16:33
Hello,
Empty fields should show as empty text: we have tried here with an example and we couldn't reproduce. Non-filled variables are shown empty as expected (at the exit layout, pdf and also email outputs). So we'd like to take a look at your specific configuration in order to check why is this happening on your site. Please place a ticket at the helpdesk, including an access to the configuration or if you prefer, export your calculator and attach it zipped to the ticket, we'll import here and debug in order to find out.
We have noticed you have a strange configuration at this time, with no calculation button, a reset button, and the default email input showing but with an email input as well, the right configuration would be:
- Disable the 'send email to' at preferences
- You can set again any field as required.
- Change your input field 'email' at the input form for the right one ( seems you have included again the previous field ##name##), so you're not showing it.
- Configure email tab to send email to this field.
- Include any message you want to show at the 'exit layout'.
- Don't hide/enable again the 'calculate' button. And set no automatic calculation launch.
- In order to launch the inline results, you don't need to enter each inline field, you only need to launch it once using any input field instead. This would be the only code needed for your case:
CB("").change();
It only mimics the first action of a user on one input field, that will be launching all inline calculations across the form.
When email is sent all editable fields resets: same as above, it doesn't happen here (as this function is not included). The reset must be done intentionally by the user, clicking the button 'reset'. Tried at your page and we couldn't see form being reset either, both inputs and inline results are ketp once the email is sent.
- For having a reset function, and also launch the inline calculations, you can show the reset button you already have, and try place the same inline calculation call:
CB("").change();
at the 'before reset' javascript tab.
We look forward the calculator configuration so we can debug the empty variables issue.
Thanks, regards
Edited by MSTeam - 14.01.2019 09:49
Hi
Thanks for the inputs
I'll create ticket now because there are still some quirks.
Best regards
Hello
1st thanks for this great component. I needed to build calculator by mimicking simple Excel spreadsheet
and this component was big relief after time spent by fiddling with other form creators for Joomla.
I created one calculator where user needs to fill some numbers and form shows results in inline fields
There are also three text fields and one Checkbox on the bottom where users needs to fill their personal details before sending email.
I've set Name field and Checkbox to be required.
Also:
- Throws calculate on init page > Yes
- Hide Calculate button > Yes
- On three text fields on the bottom > Reload Inline events > No
Questions:
1. Whenever page loads, it shows this prompt: "Some values are incorrect"
https://www.znaor.com/calctest
That's happens if I set "Your Name" or Checkbox I agree field to be required.
I need to have both them required and Id to keep "Throws calculate on init page" option activated
Is it possible to exclude these from initial page init on load?
Any suggestions how to fix this issue?
2. Where can I edit email and PDF templates?
- I used bootstrap in Form layout but this doesnt work in email. I need to have three columns
Should I use tables instead of bootstrap template?
3. How to prevent sending empty fields in email? (Or to be shown in PDF)
Currently if field is empty, user gets ##variablename## in email.
Maybe to set up some conditional rules? Examples?
4. What would be the best way to replace default "Send by email to" field at bottom with Custom email field
And custom send email button which is shown next to reset button?
I would like to have all user fields in one area, like: Name, Email, Phone, etc.
And all needed buttons on the bottom
5. Is it possible to have Print button at bottom, like PDF and Excel buttons?
Thanks
Regards