Checkboxpopup (VBScript)

V

valendes

Hi

Is there any possibility to include something like a popup with Checkboxes
in Infopath?
I'd like it to work basically like a "InputBox()", but with several
checkboxes instead of just one field where you have to type your text in.

any ideas?

thank you ;)
 
G

Greg Collins [InfoPath MVP]

You could write some code in the OnAfterChange event handler for the check box which opens a modal dialog box (requires Full Trust)... but this might be more work than its worth.

--
Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com


Hi

Is there any possibility to include something like a popup with Checkboxes
in Infopath?
I'd like it to work basically like a "InputBox()", but with several
checkboxes instead of just one field where you have to type your text in.

any ideas?

thank you ;)
 
V

valendes

Hi

It would be ok to use the modal dialog box, if it wasn't for the
certificates. Even if I set it to fully trusted i need them. But maybe i'll
use / have to use ;) the solution anyways, so thank you :)
 
G

Greg Collins [InfoPath MVP]

One note: If you are using a custom task pane, you can have the task pane display a modal dialog box. This does not require full trust. One issue with this though: if you are using managed code, you cannot call into your task pane script from your managed code without being full trust. Calling from script to script does not have this issue.

Good luck.

--
Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com


Hi

It would be ok to use the modal dialog box, if it wasn't for the
certificates. Even if I set it to fully trusted i need them. But maybe i'll
use / have to use ;) the solution anyways, so thank you :)
 
V

valendes

once again: Hi and thank you :)

So if i cannot call from managed code into the task pane script i cannot
call vice versa either (passing an array [the true/false values from the
checkboxes] to the managed code), can I?

But I could make the task pane script creating a new temp textfile and
writing the array into it. But I guess that's just way too complicated ^^
 
G

Greg Collins [InfoPath MVP]

You are allowed to call from script (task pane) into managed code (formcode.cs or .vb). This is allowable. You cannot, however, call from manged code to script without being full trust.

--
Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com


once again: Hi and thank you :)

So if i cannot call from managed code into the task pane script i cannot
call vice versa either (passing an array [the true/false values from the
checkboxes] to the managed code), can I?

But I could make the task pane script creating a new temp textfile and
writing the array into it. But I guess that's just way too complicated ^^
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top