Print Page | Close Window

FormFieldJavaScriptAction

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3986
Printed Date: 28 Apr 24 at 6:02PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: FormFieldJavaScriptAction
Posted By: Koverhage
Subject: FormFieldJavaScriptAction
Date Posted: 30 Jun 22 at 7:47AM
Hello,
i generate a form filed with DPLNewFormFieldA
if the form field value is changed, the color should be changed, e.g. from black to red.
Can anyone show the the script code / sample how i can do that ?
Thanks



Replies:
Posted By: Ingo
Date Posted: 03 Jul 22 at 9:28PM
Hi Klaus,

QuickPDF is able to check if a form field has changed.
You should try this function:
https://www.debenu.com/docs/pdf_library_reference/GetFormFieldJavaScript.php

Additionally i've found two functions in QuickPDF to change the color of form fields:
http://www.debenu.com/docs/pdf_library_reference/SetFormFieldBackgroundColor.php
http://www.debenu.com/docs/pdf_library_reference/SetFormFieldBackgroundColorCMYK.php

What's still missing is the real java script code and for this you should try google like i do:
https://www.codegrepper.com/code-examples/javascript/change+textbox+color+javascript


Cheers and welcome here,
Ingo



-------------
Cheers,
Ingo



Posted By: Koverhage
Date Posted: 04 Jul 22 at 7:15AM
Thanks, Ingo. I will try it.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk