cancel
Showing results for 
Search instead for 
Did you mean: 

Use Scenario Step value within Form

Former Member
0 Kudos

Hi,

Does anybody know whether it possible to read the Scenario Step value from within an Adobe form?

I had intended on hiding certain sections (sub forms) based on the current Scenario Step value. However, I cannot find any way of reading the Scenario Step value. As an alternative I would be happy to read the value of the Scenario Step outside of the form (but within the framework) then pass the value into the form.

Any suggestions gratefully received. Otherwise I guess my only option would be to have two forms, one with the sections and one without but that would required a large amount of rework for me.

Kind Regards,

Darren

Accepted Solutions (1)

Accepted Solutions (1)

chintan_virani
Active Contributor
0 Kudos

You can try following JavaScript code

var modeVal = xfa.record.CONTROL_PARAM.ISR_MODE.value;
xfa.host.messageBox("Mode is :"+modeVal);

Answers (2)

Answers (2)

OttoGold
Active Contributor
0 Kudos

If he didn´t expect the value to be there, he would not advise you to try that:)))) Regards Otto

Former Member
0 Kudos

Hi Chintan,

Thank you for your interest in my issue.

Prior to your response I had already tried your solution and it didn't appear to contain the value for the current scenario step. Would you expect it to contain the scenario step? If so, I am happy to try the code again.