rank options

4 views
Skip to first unread message

gap1981

unread,
Mar 1, 2012, 11:48:07 PM3/1/12
to xls2xform
i have a question where you have to rank your first three conrcens
about a subject. So you have three select one list questions. But my
problem is that i have in the second question to block the selected
option in the first (except selected is "other") and in the third
question i have to block the selected options in the first two
questions, is that posible?
thanks again.

Prabhas Pokharel

unread,
Mar 2, 2012, 2:48:02 PM3/2/12
to xls2...@googlegroups.com, formhu...@googlegroups.com
Hi, I have put an example at http://formhub.org/prabhasp/forms/rank_example (under the XLSForm heading on the page, click on "Excel" to download the XLSform), which does most of what you need. To handle the "other" situation, you'll need to put more constraints on rank3, but I am hoping you can follow the rank2 example to do that.

cheers,
Prabhas
--
Prabhas Pokharel
http://twitter.com/prabhasp
Nepal mobile: +977 98137 91044
US mobile: +1 347 948 7654
skype/facebook/whatever: prabhasp

Guillermo Perazzo

unread,
Mar 3, 2012, 6:41:55 AM3/3/12
to xls2...@googlegroups.com, formhu...@googlegroups.com
hi prabhas thanks you for the rank. But im having a problem using other. Since My form must to be in spanish so  i wasnt using the other option. I had added a other option manually. So now when i add your constraint it breaks. i show you my xls

Guillermo A. Perazzo





2012/3/2 Prabhas Pokharel <prabhas....@gmail.com>
ranking3.xls

Prabhas Pokharel

unread,
Mar 3, 2012, 9:53:30 AM3/3/12
to xls2...@googlegroups.com, formhu...@googlegroups.com
Guillermo, because in your options list, you have numerical values under the "name" column, the values of your variables are actually numbers rather than strings (which are represented as '16', while numbers are represented simply as 16).

Anyways, I have attached a version of your form that has the right behavior for the second question, I believe. Do have a look at both the constraint and the relevant column, as I changed both for p6.1 and p6.2

Hope this helps more.
ranking3.xls

Prabhas Pokharel

unread,
Mar 3, 2012, 9:54:48 AM3/3/12
to xls2...@googlegroups.com, formhu...@googlegroups.com
Also, a quick note, we have revised the xlsform language to make it simpler and less verbose. Check out the formhub blog ( http://blog.formhub.org/ ) for a recent post about this, and review the http://formhub.org/syntax/ to look at updated syntax.
Reply all
Reply to author
Forward
0 new messages