/scripts/ahub.form.attachments.js
0

​xfa.host.messageBox not working at runtime

Jan 03, 2017 at 08:21 PM

217

avatar image

We have a form that is not interactive, but I didn't see an area more appropriate to ask this question than here.

We have in the past used messageBox to "debug" these forms.

We have an FPM HCM P&F form that at the end will generate a PDF form. Given this PDF is not interactive, we have it set for standard layout instead of ZCI.

We need to use values from some of the fields on the form to determine if other sections should be visible or not. The fields we need for the evaluation are defined as a dropdown so they have a key value pair. The value is what is shown on the form. However, we wanted to validate this so we create a xfa.host.messageBox on the ready:form even and the ready:layout event, and to keep it simple we just add text.

When we hit the preview tab in livecycle designer we see the messageBox. But when we generate the form via the FPM application, the messageBox is not rendered.

Would anyone have any insight as to how to get the messageBox to appear at runtime?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Prajesh Desai Jan 16, 2017 at 08:40 AM
0

Please make sure you run pdf dynamically. Message box is only pop up if pdf runs dynamically.

Hope this helps.


untitled.png (7.1 kB)
Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thanks Prajesh.

Sorry for the delay in replying, for some reason I don't receive emails when people respond to threads any longer.

At any rate, I believe we may have left this parameter set to false as we are trying to get rid of all of our interactive forms to drop the Adobe license costs. However, that would appear to be an issue, if the best way to debug these is to use alert/message boxes, and those boxes only appear when this parameter is set to true, this parameter seems to generate an interactive form according to the documentation. We don't need an interactive form per se, but the ability to use alert/message boxes for debugging would be nice.

Am I interpreting correctly according to the documentation here:

Parameters of the Generated Function Module

That setting SFPDOCPARAMS-DYNAMIC = 'X' would require the pdf licensing for interactive forms?

0
Skip to Content