W
wls
I have a number of forms in Excel that I'm converting into InfoPath for
a client. On one such form, I have a series of interactive "stop
light" controls to indicate status.
By 'stop light' I mean a simple text box that can hold one, and only
one, letter, of the set R, Y, or G (for red, yellow, or green,
respectively). The background changes to the color of the letter.
While trivial in HTML, I have only the conditional background colors
working in InfoPath.
What's elusive is that the customer wants to be able to type the single
letter R, Y, or G in the text box, and if so, accept it and instantly
move focus to the next one without hitting tab or return. If not, do
nothing. Additionally, if clicked in, the letter should cycle to the
next in the series.
Only the problem is I can't get InfoPath to actively interact with the
user in real time. There seems to be no onFocus() or onKeyPress()
events. Even onClick() is missing when it comes to non-button objects.
I tried manually tweaking the XSLT file, injecting JavaScript. No
dice. InfoPath ignores it. I've got 90% of a workable solution, and
my hands tied behind my back for the rest.
I'm stunned at the lack of interactivity provided by InfoPath, and I
have no idea how I'm going to address more complex forms. Is there any
way to turn on some advanced mode and get more detailed event handler
notifications? Can I add my own ActiveX controls to a form?
a client. On one such form, I have a series of interactive "stop
light" controls to indicate status.
By 'stop light' I mean a simple text box that can hold one, and only
one, letter, of the set R, Y, or G (for red, yellow, or green,
respectively). The background changes to the color of the letter.
While trivial in HTML, I have only the conditional background colors
working in InfoPath.
What's elusive is that the customer wants to be able to type the single
letter R, Y, or G in the text box, and if so, accept it and instantly
move focus to the next one without hitting tab or return. If not, do
nothing. Additionally, if clicked in, the letter should cycle to the
next in the series.
Only the problem is I can't get InfoPath to actively interact with the
user in real time. There seems to be no onFocus() or onKeyPress()
events. Even onClick() is missing when it comes to non-button objects.
I tried manually tweaking the XSLT file, injecting JavaScript. No
dice. InfoPath ignores it. I've got 90% of a workable solution, and
my hands tied behind my back for the rest.
I'm stunned at the lack of interactivity provided by InfoPath, and I
have no idea how I'm going to address more complex forms. Is there any
way to turn on some advanced mode and get more detailed event handler
notifications? Can I add my own ActiveX controls to a form?