Hello @luisef
You can define the number of dependencies you need. Please, watch the video I’ve recorded right now visiting the following link:
https://wordpress.dwbooster.com/customdownloads/2020/09/06/video-o.mp4
Concerning the text fields, you are using the same class name in the different forms: result-here. So, the following piece of code will affect every tag on the page with the class name assigned:
jQuery('.result-here').html(result);
The previous code will affect the fields with the class name: result-here in all the forms inserted on the page.
Best regards.
Thread Starter
luisef
(@luisef)
Thank you very much for the reply
I’m going to proceed with changes to the results problem.
As to the dependencies, that’s exactly how I’m doing. Something is wrong about any procedure. I simply what to show a text input box and a CP Print button.
Best regards
Hello @luisef
The dependencies are not related to the “Print Button”; they are separated process.
Please, try clearing the browser’s cache and reload the forms builder. If the issue with the dependencies persists, do not hesitate to contact me through my private website:
https://cff.dwbooster.com/contact-us
Best regards.
Thread Starter
luisef
(@luisef)
1 – Showing results, solved!
2 – Dependence is now working fine, in preview mode, my Opera cellphone, but not on desktop. Very strange!
3 – To print (with CPBlocks) I’m using printForm(‘[id*=”cp_calculatedfieldsf_pform”]’); and on “OnClick event” changing “id” to the form “id”. But it won’t work. Any suggestions?
Hello @luisef
I’m visiting your online form, and I see the dependencies are working. Please, let me know the dependencies that are not working as should.
For printing the form, the piece of code you are using has no sense: printForm('[12*="cp_calculatedfieldsf_pform"]');
The correct id: printForm('[id*="cp_calculatedfieldsf_pform"]');
Best regards.
Thread Starter
luisef
(@luisef)
Dependences are ok.
I’ve changed the print code and in the preview works fine now. Than you.
My form has some hidden help text, only visible when clicking the Help button.
Is there some way to exclude it when printing.
Best regards
Hello @luisef
If you assign to these fields a custom class name, for example: no-print and you enter the following style definition as part of the form:
@media print{
.no-print{display:none !important;}
}
These fields won’t be printed. However, these questions are not related to our plugin. These are basic knowledge of CSS.
Best regards.
Thread Starter
luisef
(@luisef)
Ok, Thank you very much.
I’ll try to implement those CSS changes.
Once again thank you for this great support.