Skip to main content
Known Participant
June 11, 2021
Answered

PDF Forms: Pop to show correct result when hover the mouser over form field

  • June 11, 2021
  • 2 replies
  • 1704 views

PDF Forms: Pop to show correct result when hover the mouser over form field

 

I'm creating quiz and I want some sort of pop up to show correct result when i hover over field with mouse
but i don't want it to be alert, is there something else i could use to make it work other then app.alert?

 

[Edited the Subject with the as per the query: Mod]

This topic has been closed for replies.
Correct answer Nesa Nurani

Yes, you can add this as 'Mouse enter' event:

app.popUpMenu("Correct result is XXX");

Change text as you want.

2 replies

try67
Community Expert
Community Expert
June 11, 2021

Use the field's built-in Tooltip property.

kiki1986Author
Known Participant
June 11, 2021

I knew already about tooltip but i gave up on it because it doesn't allow me much control over where inserting new line, because some aswers are long text and there is also multiple answers. But still thank you for your time i appreciate it.

try67
Community Expert
Community Expert
June 11, 2021

Actually, you can control it, but only if you apply the tooltip using a script, like this:

 

this.getField("Text1").userName = "Tooltip line 1\nTooltip line 2";

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
June 11, 2021

Yes, you can add this as 'Mouse enter' event:

app.popUpMenu("Correct result is XXX");

Change text as you want.

kiki1986Author
Known Participant
June 11, 2021

That is actually nice, I take a look into guide for app.popUpMenu and I see that i can also add sub items,this will be useful for my project,thank you so much.