ALERT! The community will be read-only starting on April 19, 8am Pacific as the migration begins. Read more for important details.
ALERT! The community will be read-only starting on April 19, 8am Pacific as the migration begins.Read more for important details.
Absent Member.
Absent Member.
682 views

How to script if no of pages to be filled will change based on the country selected from dropdown

Hi,

In my current scenario, the no of pages to be filled is changing depending on the country selected

If my selected country is United States,I have to fill 5 pages

If my selected country is United Kingdom I have to fill 6 pages

 

in this scenario

I recorded using United States(5 pages)

I correlated country name and selected Random value because different vusers should select different countries in real time

If any vuser will select United Kingdom,he have to fill six pages and the pages are also changed based on the Country,

How to write script

 

Any help is appreciated

 

 

0 Likes
5 Replies
Absent Member.
Absent Member.

Hello!

 

In this case i would creae two different scripts.

Or you can combine the two flows in one script (two separate action blocks) and skip one of each depending on the selected parameter value.

 

Kind regards

Thomas

0 Likes
Absent Member.
Absent Member.

can I keep a if loop depending on the parameter value selected and select different blocks related to parameter value?

0 Likes
Absent Member.
Absent Member.

Hello!

 

Yes, of course.

You can enclose the code in each action block in an IF and skip or execute depending on the parameter value.

 

Regards

Thomas

0 Likes
Absent Member.
Absent Member.

Hi,

 

Thank you very much

 

 

Cheers

Bharath

0 Likes
Absent Member.
Absent Member.

Hi Bharath,

If you recognize the problem is properly solved, would you please mark the post as solved accordingly?

Thanks,
Tedy
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.