movement statements (advance, ask, move, reenter, skip)

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
khurshid.arshad
Posts: 571
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan

movement statements (advance, ask, move, reenter, skip)

Post by khurshid.arshad »

Dear CSPro Team;

I need guidance on skip statement within Block in 7.2.

Example:
I have 5 variables:
1. What is the Age;
2. What is the marital status (for 15 years and above)
3. What is the employment status (for 10 years and above)
3.1. Others, Specify(In case of others in employment status)
4. Is [Name] facing any chronic diseases (for all ages)

The scenario is:
All five questions are under-one block and if age is less than 15 years then skip marital status question;
If age is less than 10 years then skip marital and employment status;
If age is greater than and equal to 10 years and others is not selected in employment status then skip to chronic diseases;


Best.
a.
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: movement statements (advance, ask, move, reenter, skip)

Post by aaronw »

Your question has more to do with block then with movement statements.

First, note that the behavior between blocks on Windows and Android does differ. The following example is specific to Android. In this example, we have a block with two fields. Notice the timing in which these procs run relative to when the interviewer enters data.
  • BLOCK - preproc
  • BLOCK - onfocus
  • FIELD_1 - preproc
  • FIELD_1 - onfocus
  • Interviewer enters data for fields 1 & 2 + select next
  • FIELD_1 - postproc
  • FIELD_2 - preproc
  • FIELD_2 - onfocus
  • FIELD_2 - postproc
  • BLOCK - postproc
Procs are not being run as the interviewer enters data for each field. In general, you'll want to write your logic in the block. If that's not possible then a block won't work.

If we look at your example you'd need a skip or "ask if" for fields 2 and 3. Also, depending on the response to 3 you'd need to either enter or skip 3.1. It's not possible to handle this at the block level, so you won't be able to use a block.
htuser
Posts: 631
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Re: movement statements (advance, ask, move, reenter, skip)

Post by htuser »

Hi Arshad,
Early with 7.2 beta release, i was discussing with the developer team about. Hopefully, they informed we that we'll be able to have
1.- Normal Logic execution within block;
2.- Reenter focus within block.
in the future.
So, you'll be able to you logic inside block.
The CSPro developer Team prioritize a feature/functionality on the to do list when multiples users request it.
So, be patient!

Best Regards,
G.VOLNY, a CSProuser from Haiti, since 2004
khurshid.arshad
Posts: 571
Joined: July 9th, 2012, 11:32 am
Location: Islamabad, Pakistan

Re: movement statements (advance, ask, move, reenter, skip)

Post by khurshid.arshad »

Dear Arron Htuser

I had tried to write my logic within the block but it is not working. I hope, it will work in the future as Htuser requested.


If CSPro team can add one more think in development list is hidden statement in the tablet.

It is very use-full when we are trying to get same data twice. Example contact number, cnic, etc.


Best.
a.
Post Reply