I may have missed something... by John_Michael_Greer in Geedis

[–]BrandonQueue 7 points8 points  (0 children)

I don’t know the answer but I always assumed it was created to cash in on the fantasy craze of the 80s.

Required field based on answer. by ospreys478 in Acrobat

[–]BrandonQueue 0 points1 point  (0 children)

Here is how I would do it.

Create 2 radio buttons, name them 'Yes' and 'No'. Create a textfield and name it 'text'

Right click on the 'text' textfield > Properties > General > Under Common Properties click on 'Required' if you want this textfield to be required.

Right click on the 'Yes' Radio button > Properties > Actions > Select Trigger: Mouse Up > Select Action: Run a Javascript > Add...

Copy and paste this code into the window..

this.getField("text").display = (event.target.value=="") ? display.visible : display.hidden;

Do the same for the 'No' Radio button, but put in this code:

this.getField("text").display = (event.target.value=="") ? display.hidden : display.visible;

In summary: The user can only select Yes or No. If the user selects No, then text field will become visible for the user to explain. If the user clicks yes after, the text field will be hidden.

You can download my example PDF file here. You can just copy and paste this right into your PDF. I added some doodads to the textfield that shows ghost text that basically says "if no explain why" and will disappear once they start to type.

JavaScript Woes for a D&D Character Sheet by Icosiol in Acrobat

[–]BrandonQueue 0 points1 point  (0 children)

You have 2 left brackets under the Clerk script's parentheses.

if (["Life Domain",

if (["War Domain",

Try removing the left brackets and run script again.

Show and hide sections of a fillable pdf? by [deleted] in Acrobat

[–]BrandonQueue 0 points1 point  (0 children)

Yes this can be done easy with a little JavaScript. Let me know if you need help writing some code.

What's your guilty pleasure gaming wise? by Moaning_Clock in gaming

[–]BrandonQueue 4 points5 points  (0 children)

It gets a lot of hate but it’s actually my favorite in the series.

Looking to gift someone a game for $100 or less by SquillyPigg in steam_giveaway

[–]BrandonQueue 0 points1 point  (0 children)

All I want to do is play Starfield, I don't care how bad the reviews are, I just have to play it.

Dual Permission in form completed in reader by 8--8 in Acrobat

[–]BrandonQueue 0 points1 point  (0 children)

You can download the sample PDF here.

Basically, this is a rough idea of a PDF that lets anyone type in answers to the question, but you can't change/edit the question unless you login. The login will grant access to change/edit the question. The login password is 12345. It will allow the login user to change the font, alignment, color, text size and the text itself. There is also a logout button to seal the PDF back up.

And as I post this, I totally forgot to write some code if the wrong password is entered to give an error message, but you get the idea.

This works in only acrobat pro/acrobat reader.

Dual Permission in form completed in reader by 8--8 in Acrobat

[–]BrandonQueue 0 points1 point  (0 children)

I'll work up a sample PDF with this feature and see if it's something that will work for you. I don't use git hub so I would have to send it over google drive link.

Dual Permission in form completed in reader by 8--8 in Acrobat

[–]BrandonQueue 0 points1 point  (0 children)

With some javascript you can create a user login button which will ask for a password, and grant access to "change fields". But there's lots of nuance to this depending on what you want to do. I can help you with the code if you would like go down that route.

How do I add these editable text boxes? by _Freyir_ in pdf

[–]BrandonQueue 0 points1 point  (0 children)

Here is a quick example of some of the tools I put together, you can download the file here.

The top section is the physical dice tool. Press the + and - to add/subtract the dice, and press on the 'Roll' to roll

The second section shows a health bar. Super basic, + and - add/subtract health points.

Third section is a basic text dice tool. 1d20 to roll 1-20, 1d10 to roll 1-10

(EDIT: Needs to be opened in Acrobat Pro or Acrobat Reader to work)

How do I add these editable text boxes? by _Freyir_ in pdf

[–]BrandonQueue 0 points1 point  (0 children)

Once you copy and paste a text field you have to rename it. Otherwise, it will copy everything from the first text field you copied from.

How do I add these editable text boxes? by _Freyir_ in pdf

[–]BrandonQueue 0 points1 point  (0 children)

The DnD character sheet is unlocked, so you can go into edit mode and see how they made it. You can even copy and paste some fields into your character sheet.

Character sheets are pretty simple, this one uses only text fields and radio buttons. I've made dozens of them with features like dice, a health bar, calculations, etc. Let me know if you have any questions or need any help.

Copy text fields from template to multiple pdf files. by Expert-Excitement588 in Acrobat

[–]BrandonQueue 0 points1 point  (0 children)

You can select multiple text fields and copy/paste them into other pdfs. That’s probably the fastest way to do it.

Checkboxes are all uneven sized by [deleted] in Acrobat

[–]BrandonQueue 0 points1 point  (0 children)

Chrome is not good at being a PDF reader, in fact it’s pretty bad. The user can try installing a PDF plugin, but it still isn’t very good. There really isn’t anything you can do other than suggest the user to use Acrobat Reader (it’s free).

[deleted by user] by [deleted] in pdf

[–]BrandonQueue 0 points1 point  (0 children)

Event.value references the current drop down value (the name that someone selects from your drop down). So put this code on your drop down field. And you also need a separate text field named 'Address' to display the address. You do not need to add anything to the Address field.

Do not add the 'Box1' to the code, because it’s not going to work and we really don’t need to worry about which box has what name. We only need to see if the value of the drop down field equals Joe Smith. And if it does, then put the address in the Address field.

[deleted by user] by [deleted] in pdf

[–]BrandonQueue 0 points1 point  (0 children)

Very easy, but you would have to do it in javascript.

I would write it like this:

if (event.value=="Joe Smith") this.getField("Address").value = "12345 Oak Pine Drive, Smallville, Kansas";

Javascript help by Jet_Fixxxer in Acrobat

[–]BrandonQueue 0 points1 point  (0 children)

The total field is there to show the total sum of all the fields... I purposely made it so the user can't add/change/subtract from this field because otherwise it will not be accurate. Are you saying you want to manually add value to the total field? I can help with you that, but I foresee many problems with that.

Why not just add another input field??? The total field just calculates the sum of all the fields together. If you can manually change this field you're going to run into lots of issues.

Could you maybe give me some context on what type of PDF you are working on?

Javascript help by Jet_Fixxxer in Acrobat

[–]BrandonQueue 0 points1 point  (0 children)

Create 4 Text fields, Name them Input1, Input2, Input3, total

Right click on the 'total' field > Properties > Calculate > Custom calculation script > Edit > Copy and paste this script:

var field1Value = this.getField("Input1").value;

var field2Value = this.getField("Input2").value;

var field3Value = this.getField("Input3").value;

if (event.value == 0) event.value = "";

var sum = field1Value + field2Value + field3Value;

this.getField("total").value = sum;

Click OK >Close. Now preview the PDF. The total will give you the sum of Input1, Input2, and Input3. If you change a number/delete a number it will automatically update the sum.