No easy way to implement spintax in version 4?

abccba

Client
Регистрация
28.12.2011
Сообщения
30
Благодарностей
0
Баллы
6
Hi guys,

Just upgraded to version 4 of ZP, what a change. Everything looks much slicker and I'm just getting my hands dirty with it.

My question is this :

In version 3 it was fairly easy to add spintax or "get random line from file" from within the action recorder.
I have looked around at some tutorials and also on the forum, but it seems quite a lengthy process to just add spintax. Is there no simple way to do this from the action recorder?

Greetings and merry xmas! :-)
 

lokiys

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

abccba

Client
Регистрация
28.12.2011
Сообщения
30
Благодарностей
0
Баллы
6
Hi, I've already browsed through them (and the forum) but couldnt seem to find the exact answer


What i mean is this :

- There is a page with 20 input forms
- In each input form I want to use a random line from the same list OR use spintax to generate the input

In V3 this could be done very simply, but from how I see it in V4 i must now :

For each input field create list processing branches since the variable it saves it under is static and thus will be the same if I use {-Variable.randomlinefromfile-}

I hope this makes sense and someone can point me in the right direction :-)
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Yes, in v4 you will need 2 actions for this task:
- take line
- set data to field.

List processing is the most easy way to perform this.
 

abccba

Client
Регистрация
28.12.2011
Сообщения
30
Благодарностей
0
Баллы
6
In version 3 (if I remember correctly) you could copy/paste the macro for your spintax. This meant that if you wanted to enter spintax in 10 form fields it was very fast.

Now I find I have to repeat the take line+set data to field for each form-field separately.

Im very impressed by v4 but this is the only example I can find of something that has become harder :P

Yes, in v4 you will need 2 actions for this task:
- take line
- set data to field.

List processing is the most easy way to perform this.
 

lokiys

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

abccba

Client
Регистрация
28.12.2011
Сообщения
30
Благодарностей
0
Баллы
6
Hmm, better start learning to code then I guess ;P

Thanks for the help and answers guys!
 

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