Print Page | Close Window

How to combine value of checkbox with textfield ?

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: JavaScript
Forum Description: Discussions relating to the use of JavaScript within PDF.
URL: http://forums.planetpdf.com/forum_posts.asp?TID=2091
Printed Date: 20 Aug 2019 at 3:18pm
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


Topic: How to combine value of checkbox with textfield ?
Posted By: Robert1977
Subject: How to combine value of checkbox with textfield ?
Date Posted: 10 Dec 2016 at 11:43am
Hi,
I've to do simple thing, I have two checkboxes: A and B + one textfield.
If I check checkbox A it should cause that in textfield apears number "4", if I I check checkbox B it should cause that in textfield apears number "8". If neither checkboxes are checked texfield is empty.
I suppose simple javascript id needed, PLEASE HELP.
https://www.iform.pl/txtfile/example.pdf

Thanks,
Robert



Replies:
Posted By: Merlin
Date Posted: 13 Dec 2016 at 1:18pm
Hi.

You don't need any script.
Use the "Export value" in the 2 checkboxes, then ask the text field to make the sum.

Example: uploads/615/example-ok.pdf - uploads/615/example-ok.pdf


-------------
ENG : https://www.abracadabrapdf.net/utilities-in-english/welcome/ - abracadabraPDF.net
FRA : https://www.abracadabrapdf.net - abracadabraPDF.net


Posted By: Robert1977
Date Posted: 13 Dec 2016 at 2:05pm
Hi,

Thaks, I have already done it using script but You showed me easier way I didn't know :)
Thank You again :)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 - http://www.webwizforums.com
Copyright ©2001-2017 Web Wiz Ltd. - https://www.webwiz.net