Copy link to clipboard
Copied
I've got an 18pg form with a few fields set to Reset a Form in the Actions option. I keep on finding out fields are changing even when I reset the Actions and lock the field numerous times. This keeps on happening randomly throughout the document and I cant' seem to grasp the reason behind this or how to avoid it from happening over and over. Any tips or words of advice out there?
Thanks
Copy link to clipboard
Copied
Locking a field just means the user can't interact with it. Besides, the correct term is "read only"
But that doesn't prevent it from being reset or filled in by calculations, scripts or whatever.
Copy link to clipboard
Copied
I see. What Im struggling to understand is how can I make sure that the fields doesnt randomly change actions even after ive reset and saved it...
Copy link to clipboard
Copied
Resetting a field will have no influence over any actions associated with it. Please describe in more detail exactly what you're doing, and what the results are. Also, share the file in question, if possible.
Copy link to clipboard
Copied
I'm inputting some fields that I need to reset and link to each other - ie Are you Retired - a tick box of a Yes and No.
I then go to the actions panel, and create a 'Reset a Form' action and link the fields to each other. Lock and save.
I then go back into the file a day or 2 later, and when I go back to the action to double check it, it would have ticked a number of random fields in the list to this action by itself. How do I sort this issue out?
I cant seem to complete and finalise it, as everytime I pick a few random fields to double check, I found out the actions have been changed.
File attached
Copy link to clipboard
Copied
Very odd. And you're not editing the field names in between, or anything like that? Because I'm seeing a bunch of error messages from other events (calculation, mostly) about incorrect field names being used, such as "LUXMQty1". If you change a field's name that you've referenced before you have to clear the list and re-select the fields.
If you wish you can switch to using a script, instead of selecting fields from the list.
The code to do so is simply:
this.resetForm(["Field name 1", "Field name 2", "Field name 5"]);
Only the fields mentioned in the list will be reset when the button is clicked.
You don't need to lock the field, by the way. That's only limiting you...
Copy link to clipboard
Copied
PS. If you have two mutually exclusive check-box fields (such as a Yes/No selection) you should really give them the same name, and unique export values. Then the user won't be able to select them both at once.
However, that would require using a script with a conditional statement if you wanted to reset other fields based on the selection in that group.
Copy link to clipboard
Copied
would you have a simple example of how to set this up? The check boxes are quite straight forward throughout the document as in - a Yes / No, or Marital Status with 3 options. But they are all exclusive, and not linked to any other fields outside of that group
Copy link to clipboard
Copied
Copy link to clipboard
Copied
thanks so much! it's so much easier than how i've set up the fields myself.
I had another issue reported by the client with the saving the document click option being greyed out on some of the pages, but I havent had a chance to look into that bit yet.
I may report back on this thread when I have a better idea of what;s going on. Until then, thanks again for all your help. I've learned heaps
Copy link to clipboard
Copied
That's great! I suggest trying to learn some basic scripting as it will help you a lot when creating the file.
For example, you have a text field set as required ("IF NO, WHEN DO YOU PLAN TO RETIRE?"), but it should only be so if the No box above is selected. If the user selects Yes it doesn't make sense to require them to answer that question, as it dosen't apply to them. You could use a script to do that, or even to hide that question entirely, by disabling the field, or making it hidden.
Copy link to clipboard
Copied
thank you and yes you are absolutely right. Would I easily find script examples on the adobe support page?
Copy link to clipboard
Copied
You're better off searching these forums, I think.
Copy link to clipboard
Copied
when you say incorrect field names being used, can you explain what you mean exactly?
I beleive I have reset the fields when I've changed names. For example - on pg 3 in the You section - Are you a UK resident. if you look at the No tick box, you can see that a bunch of random fields are also selected to this, and I;ve reset this various times.
Could copying text boxes / tick box fields throughout the document link them in a way that may cause similar issues?
I can test using scirpt instead and see how that works... this is my first time building a form and so most of it has been by trial and error.
Copy link to clipboard
Copied
I see what happened now. You entered your calculation formula in an incorrect place.
Under LUXURYMonthlyTOTAL you placed it as a custom calculation script, but it's not a script.
You should move it to the Simple Field Notation option.
Like I said, though, renaming fields after selecting them for calculations can cause issues. Use a script for a more consistent result. However, it will not throw an error if you use an incorrect field name in the list of fields to reset. It will simply do nothing.
Copy link to clipboard
Copied
With the calculations page, i am still trying to work that one out. Just tested the Simple Field Notation option and it worked. one problem solved 🙂 Thanks
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more