Variable loop - making ad in few cities at one project

KrisTent

Новичок
Регистрация
18.02.2016
Сообщения
4
Благодарностей
0
Баллы
1
Hey hey hello!

I tryed to find similar problem, but I didnt found anything on the forum. If You know the topic with working solution, let me know about this and move this topic to trash.

So, I made project with form, and everything is working really well. The point is, I want to add same ad to another city - which can be chosen from the field.
And now - I`ve got a tip, which someone is telling me to set variable which will change, for example increase value +1, and then set back to the beginning of the project after used city.

I tryed to find that option, ofc. I found variables, and I tryed to used it in different ways - but i have no idea how to set it correctly.

Thanks in advance!
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113

KrisTent

Новичок
Регистрация
18.02.2016
Сообщения
4
Благодарностей
0
Баллы
1
Thanks for fast response :-)

Link :
And now, You can see field: "Podaj lokalizację" (under the + + + + ), where You can choose the city. I already found a way to choose the city without any problem, but I have no idea how to add variable to it, and set back to the beginning of the project after used city.
 

qzen4i

Client
Регистрация
01.05.2014
Сообщения
1 408
Благодарностей
314
Баллы
83
you mean something like this?
 

Вложения

  • Спасибо
Реакции: KrisTent

qzen4i

Client
Регистрация
01.05.2014
Сообщения
1 408
Благодарностей
314
Баллы
83
or this )
 

Вложения

  • Спасибо
Реакции: KrisTent

KrisTent

Новичок
Регистрация
18.02.2016
Сообщения
4
Благодарностей
0
Баллы
1
Lovely! I didnt thought it`s so easy to do it! Thank You a lot! Now I have to combine how to loop the project till variable will not end :D Or it is automatic?
 

qzen4i

Client
Регистрация
01.05.2014
Сообщения
1 408
Благодарностей
314
Баллы
83
no it`s not automatic. I added only exapmle, for you see how you need to do, but if you need to do with a lot of countries, you`ll need to change, some its logic, and use list. And get from list the name of the city in to a variable.
 

KrisTent

Новичок
Регистрация
18.02.2016
Сообщения
4
Благодарностей
0
Баллы
1
I understood. Ok, I`m going back to it, thank You a lot for Your help!
 

Кто просматривает тему: (Всего: 2, Пользователи: 0, Гости: 2)