How to script if no of pages to be filled will change based on the country selected from dropdown (334 Views)
Reply
Occasional Advisor
Posts: 10
Registered: ‎12-17-2013
Message 1 of 6 (334 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

 

 

Frequent Advisor
Posts: 55
Registered: ‎06-06-2012
Message 2 of 6 (316 Views)

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

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

Occasional Advisor
Posts: 10
Registered: ‎12-17-2013
Message 3 of 6 (308 Views)

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

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

Frequent Advisor
Posts: 55
Registered: ‎06-06-2012
Message 4 of 6 (304 Views)

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

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

Occasional Advisor
Posts: 10
Registered: ‎12-17-2013
Message 5 of 6 (293 Views)

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

Hi,

 

Thank you very much

 

 

Cheers

Bharath

HP Expert
Posts: 24
Registered: ‎08-17-2011
Message 6 of 6 (277 Views)

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

Hi Bharath,

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

Thanks,
Tedy
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.