Copy link to clipboard
Copied
How can I create a button that circles an answer when it is clicked
I am trying to create a fillable pdf form that includes some yes/no questions as well as "rank your answer from 1-5" and want the user to click on their answer and a circle appears around it. Not covering it up or a check mark near it, but a circle (I guess it could be a square or rectangle or something as long as the intent and answer are obvious) completely around the answer. It would be extra great if the user could click it again and it would unselect it, incase they change their mind or misclick.
Is this possible? Thanks!
Copy link to clipboard
Copied
Can you share photo or file?
Copy link to clipboard
Copied
Sure, here is a few screenshot of the kinds of things I need to do. This first one is like a questionaire, circling the number you agree with...
This one is supposed to circle all the answers that describe the things they are looking for....
Copy link to clipboard
Copied
One solution for this would be to create button and make it's border transparent and put answer as button label and then use this code as MouseUp event of the button:
event.target.strokeColor = color.equal(event.target.strokeColor, color.transparent) ? color.red : color.transparent;
Copy link to clipboard
Copied
The problem with that approach is that buttons don't have a value, so if you later want to export the selected values to a spreadsheet or even just calculate a total score or an average, it's much more difficult.
I would advice against trying to do it altogether. Just place a radio-button next to each number, or move the numbers to the header row of the table and place radio-buttons in the table itself, if there isn't room for both.