I'm using Adobe Designer (the new Adobe LiveCycle) to create a Department Newsletter template. Currently I have it with a white background when highlight is off and blue background when highlight is on. I only want the highlight visible for the people filling out the form. Once form is filled out and emailed, remove the highlight. I tried using the action builder but can't seem to get it to work. I tried the "fillcolor" command (see below) and it didn't work either.
I forgot to mention that if you want to keep it that way every time the form reopens, I suggest you add an if statement when the document loads itself to turn off the highlights (docReady, formReady, initialize, calculate) whichever is the more appropriate.
Verify the order in which you execute submitting the email and hiding the button. Make sure you send the email after hiding the button.
Also after sending the email you can put the button back to visible in case the user cancelled sending the email and needs to send it again.
When you achieve being able to keep the button hidden when reopening the form from the email, you can add the following code to any of the submit button's events mentioned above.
*Note: even if you change the highlight field option with code, the user will always be able to change that highlight at any moment using Reader. If you want to avoid that you'd have to change the fields to read only.
After playing with it, when reviewing the emailed attachment of the newsletter, it shows the highlight. I also have a submit button that hides after the form is submitted, but the emailed attachment shows that also. I'm missing something (that is most likely a simple thing). Any suggestions?