Copy link to clipboard
Copied
Hi,
I'm doing an interactive pdf with InDesign,
there is a question with one correct answer between multiple answers.
when the user click the checkbox of the correct answer it shows the tick mark and can also be unchecked, and if the user click on the wrong answer's checkbox nothing happens.
here is an example gif:
I couldn't figure out how to do all that.
I tried using object state & go to state, but when I open the pdf, all the checkboxes are checked.
I tried a different way, when I click on the wrong answer's checkbox nothing happens which is ok but if I then click on another answer, then that wrong one shows the tick even though I've deleted it from [Normal On].
<Title renamed by MOD>
Copy link to clipboard
Copied
Is the element applied a "radio button"?
Copy link to clipboard
Copied
No, "Check Box".
Copy link to clipboard
Copied
MSOs are not supported in PDF.
Copy link to clipboard
Copied
I'm sorry but what does MSO mean?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I tried it, if I hide check box 2, the grey backround is removed after clicking but I want it to stay.
Copy link to clipboard
Copied
I tried it, if I hide check box 2, the grey backround is removed after clicking but I want it to stay.
By @sora20
Because you need to hide one - and show another in the same place.
You need to have a "visible" and "hidden" versions of the same button / checkbox.
Copy link to clipboard
Copied
I'm not sure if I understood you correctly, I tried using check box 2 on top of another check box 2 , still the same result, so I tried check box 3 on top of check box 2, still the same with messy result.
Copy link to clipboard
Copied
If you don't need interaction between them - then only the right answer should've two states.
But as @BobLevine pointed out - the final result will depend on the PDF reader...
Copy link to clipboard
Copied
What exactly are you trying to do?
Obviously, have nothing selected when opened, but beyone that I'm not sure.
A radio button would only allow one answer to be selected. Isn't that what you are looking for?
You can make checkboxes so they only allow one answer similar to radio buttons if you feel you need checkboxes for some reason. I've attached a PDF demonstrating your various options.
Copy link to clipboard
Copied
I'm trying to achieve the same result as the gif I provided in the post. the tick mark is shown only on the correct answer if the user click it,
for example, the question is what's the capital of Australia?
[]- Canberra.
[]- Sydney.
if the user clicks on the first check box it shows a tick (bc it's the right answer), if he/she clicks on the second checkbox nothing happens.
Copy link to clipboard
Copied
You are fighting a losing battle here. Even if, by some chance, you get this working in Acrobat, the chances of it working in most 3rd party readers or browsers is nearly zero.
Copy link to clipboard
Copied
The example I've shown is from a pdf and I was asked to do the same even if it's not supported on most readers, I have to delever it to manager as asked. You mentioned Acrobat, do you know a way to help me?
Copy link to clipboard
Copied
Well, then...open the one that works in Acrobat and examine the elements there to see how it was done. It's entirely possible that what you want to do cannot be done using InDesign alone.
Copy link to clipboard
Copied
@BobLevine Thank you, it was helpful to open it with Acrobat and examine it. I understood how it was done.
Copy link to clipboard
Copied
I'm trying to achieve the same result as the gif I provided in the post. the tick mark is shown only on the correct answer if the user click it,
for example, the question is what's the capital of Australia?
[]- Canberra.
[]- Sydney.
if the user clicks on the first check box it shows a tick (bc it's the right answer), if he/she clicks on the second checkbox nothing happens.
By @sora20
In this case - only the first one should've two states - ticked and unticked.
Copy link to clipboard
Copied
You could change the check color to white in the incorrect answers. It shows up momentarily as a check ghosted check but then "disappears".
Also, you could change the incorrect answers to show an X rather than a checkmark.
You could make it read only but that would eliminate any interaction and wouldn't work as well.
Copy link to clipboard
Copied
Thanks, that was helpful, I used it with radio button with checkmark and X from the sample list. it didn't work with checkbox because after clicking and move on it shows a black checkmark.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now