The CreatorCon Call for Content is officially open! Get started here.

Wizard Client Script

loichorisberger
Kilo Explorer

Hello everyone,

I created a wizard that either create an incident or launch a service catalog ordering process depending on the value of a variable.

However, there are 3 other variables that the user has to fill and I want to recover them in a Wizard Client Script. It doesn't work using the methed "wizard.variable_name" as described in the wiki.

Is it possible somehow to push or pull wizard variables form a panel to another ??

Thanks in advance for your answers.
Loí¯c

2 REPLIES 2

John_Jones
Kilo Explorer

Bump? Having same issue.

Script:
current.u_high_level_implementation_pl = (
'DNS Name: ' + wizard.u_vip_dns_name + '\n' +
'Port Active: ' + wizard.u_vip_port_active + '\n' +
'Port Up?: ' + wizard.u_vip_port_up + '\n' +
'Service Started?: ' + wizard.u_vip_service_started + '\n\n' +
)

results in:

DNS Name: Undefined
Port Active: Undefined
.
.
.

And yes, the variable_names are confirmed.


Solved.

What is misleading here in the documentation and the tool itself is that there is 'name' and 'variable_name', which can/should be added to your form/list views. I naturally assumed that 'wizard.variable_name' meant the field 'variable_name', but it does not. It wants the 'name' field.

After building out a Service Catalog 'record generator' where we added the variable_name to the form, I immediately added variable_name to the Wizard form as well, hence the confusion. Normally, on a fresh System Wizard default/OOB form, it wouldn't have 'variable_name' and maybe the 'wizard.variable_name' would have made immediate sense.

In our case, however, it caused rather serious confusion. Use 'wizard.name', not 'wizard.variable_name'.