For anyone too lazy to type this out (like I was), use the prompt below and change your instructional value. I have mine as "First and Last name" if (!event.value) { event.value = "First and Last Name" ; event.target.textcolor = color.ltGray; event.target.display = display.noPrint; } else { event.target.textColor = color.black; event.target.display = display.visible; }
Hello, I'm following your channel and all video from the last year. I got lots of help watching your videos. I have a request, please make a new series/playlist for "Learning PDF Form JavaScript from beginner to advanced" or ""Learning PDF Form JavaScript from Zero to Hero". I hope it will help massive people. Because such kind of content is not so much available. Especially for beginners. Thank you so much👍🙂🙏
Managed to make it gray!!! In the line "event.target.textcolor = color.ltGray;" make the textcolor "C" Capital, like this "event.target.textColor = color.ltGray;" Keep up the good work people :)
The answer is in the line: "event.target.textcolor = color.ltGray;" you should make the letter "C" capital like this: "event.target.textColor = color.ltGray;"
@@pdfform I am using Adobe Acrobat Pro, newest version, on the above stated macOS and it does not work. I sent the file to someone on Windows and it works for windows, but not for Mac.
@@pdfform if (!event.value) { event.value = "Month Day, Year"; event.target.textColor = color.ltGray; event.target.display = display.noPrint; } else { event.target.textColor = color.black; event.target.display = display.visible; } Edited to reformat properly. The text appears, disappears on focus, but never changes from gray to black. This is using the latest Adobe Acrobat DC Pro 2022.001.20085 and Preview Version 11.0 (1033.3) on Mac. Thanks in advance!
For anyone too lazy to type this out (like I was), use the prompt below and change your instructional value. I have mine as "First and Last name"
if (!event.value) {
event.value = "First and Last Name" ;
event.target.textcolor = color.ltGray;
event.target.display = display.noPrint;
}
else {
event.target.textColor = color.black;
event.target.display = display.visible;
}
GOSHHHH! I was trying to find out a useful and shorter video like this! THANKS A LOTTTTT!
how can i set other colors for the text?
Thanks a bunch, this worked like a charm!
Hello,
I'm following your channel and all video from the last year. I got lots of help watching your videos. I have a request, please make a new series/playlist for "Learning PDF Form JavaScript from beginner to advanced" or ""Learning PDF Form JavaScript from Zero to Hero". I hope it will help massive people. Because such kind of content is not so much available. Especially for beginners.
Thank you so much👍🙂🙏
Managed to make it gray!!! In the line
"event.target.textcolor = color.ltGray;" make the textcolor "C" Capital, like this "event.target.textColor = color.ltGray;"
Keep up the good work people :)
Thank you so much! This is perfect!
Great one sir
Any one able to help me add and additional line to make the instructional message italic
Thank you so much 🥰 really appreciate it
is there a way to do this and allow for rich text formatting?
Wow! thank you so much!
join our patreon page for more useful scripts
Genial, gracias.
Hi, what if I need the instruction text to be more than one liner? Thanks
use "/n" in the script to be multi line text
can you please make a short videow on how to show answer keys for questions and hide them when not being pressed
Use roll over feature
Hi is there a way to display the property of the field in the field ex: text, date , text character limit 2
yes
@@pdfformyou are great Sir
@@pdfform is there any tutorial on that Sir
Sir can you help me with the request
Hi Sir, any update
hi bro.
i have a question. i wrote that java code but my instructional text is not gray. it is black. what is the problem ? can you help me please.
Click reset the form
@@pdfform Where can you find reset the form
The answer is in the line: "event.target.textcolor = color.ltGray;" you should make the letter "C" capital like this: "event.target.textColor = color.ltGray;"
very useful!!!!
Great vídeo
This would be great if you had audio... it's so confusing trying to work out the sequence of actions from watching. No idea what I'm supposed to do.
Does not work on macOS 14.3.1
Use adobe acrobat not default pdf viewer
@@pdfform I am using Adobe Acrobat Pro, newest version, on the above stated macOS and it does not work. I sent the file to someone on Windows and it works for windows, but not for Mac.
I need this script
@SANJALI TALK. Script already provided
@@pdfform from where I can get this script
Can you please copy this script here
Script not given into description of video
Sir, I need your help please.
post your issue in our fb group.
@@pdfform Fb group link?
already provided..plz check our channel homepage
Doesn't work. The text never changes from gray to black.
@Nattles. can you share the script you have written
@@pdfform if (!event.value) {
event.value = "Month Day, Year";
event.target.textColor = color.ltGray;
event.target.display = display.noPrint;
}
else {
event.target.textColor = color.black;
event.target.display = display.visible;
}
Edited to reformat properly. The text appears, disappears on focus, but never changes from gray to black.
This is using the latest Adobe Acrobat DC Pro 2022.001.20085 and Preview Version 11.0 (1033.3) on Mac.
Thanks in advance!
@theclipart i used your script and it is working fine for me......
@@pdfform sadly, it doesn’t for me. Never changes from grey text. Thanks for checking.
@theclipart can you plz make a video of how your are doing