Expand my Community achievements bar.

We are excited to introduce our latest innovation to enhance the Adobe Campaign user experience — the Adobe Campaign v8 Web User Interface!
SOLVED

Pre Populate webapp fields via js variables.

Avatar

Level 2

Hi,

Im trying to create a webapp in which fields of it should get populate from the variables which is declared in JavaScript .

Query1.  When i try to display the js variable value in the webapp field by assigning it in (Via Context) , its assigning to the webapp variable but its not displayed in the webapp. (Attaching snapshot of how assigning)

Query 2. In single webapp i need to include javascript codes, that should execute based on the previous field values.

     For eg: I have 3 fields in webapp, the 1st and 2nd fields are populated using a dropdrop and the 3rd field should populate based on 1st and 2nd  fields value.

Snapshot for Query1

1644974_pastedImage_0.png

Could someone help me out. Thanks in advance.

Regards,

Sethupathy

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Sethupathy,

First of all, this post seems to be related to Adobe Campaign classic, not standard version, right?

If a Community forum admin can move it to ACC section, it would be nice.

You are using webApp page compatibility v5, not v6 page.
But I will try to help you anyhow.

1st question:

Your screenshot displays the advanced setting of a listbox object, with the Context section indicating the Xpath parameters of the query collection name, the id and the labels of such lookup list.
It is not dedicated for a simple variable management.

But why don't you use the standard object Value that displays a variable value, see screenshot below?

It uses by default the variable with its xpath syntax and displays it.
1645885_pastedImage_0.png

2nd question:

Use the On values changes of Advanced section to propagate changes done elsewhere in your form, to other objects, if dynamically refresh must be done.
Otherwise, simply use it in Script element of your web activity page v5, instead JS activity in the webApp (otherwise do a loop to come back into the web page with the external treatment or checks done).

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi Sethupathy,

First of all, this post seems to be related to Adobe Campaign classic, not standard version, right?

If a Community forum admin can move it to ACC section, it would be nice.

You are using webApp page compatibility v5, not v6 page.
But I will try to help you anyhow.

1st question:

Your screenshot displays the advanced setting of a listbox object, with the Context section indicating the Xpath parameters of the query collection name, the id and the labels of such lookup list.
It is not dedicated for a simple variable management.

But why don't you use the standard object Value that displays a variable value, see screenshot below?

It uses by default the variable with its xpath syntax and displays it.
1645885_pastedImage_0.png

2nd question:

Use the On values changes of Advanced section to propagate changes done elsewhere in your form, to other objects, if dynamically refresh must be done.
Otherwise, simply use it in Script element of your web activity page v5, instead JS activity in the webApp (otherwise do a loop to come back into the web page with the external treatment or checks done).