Seed and Randomize: whats that preventing to deploy my form?

Hi All,
Recently I encountered a problem “seed value must be a number or a reference to another field” What is this? It was not there earlier. It is linked to some 'randomize". I am totallyt confused. Could you please explain what are these two. Urgent.


Hi @mosharaf,

Welcome back to the community! Randomizing choice order is a feature available within KoBoToolbox to reduce enumerators bias on selecting a response for a question. Choice order can be randomized for any of the select question types. Simply set randomize to true in the parameters column of the XLSForm survey sheet to display the choices in a different order each time the question is displayed as shown in the figure below:

In your survey tab:
In your choices tab:

Alternatively, you could also set randomize in the KoBoToolbox form builder user interface as shown in the figure below:

Please note that a seed value can also be used to recreate the order choices while displaying the choice. For this it will require a number or a reference to another field. This is why you are seeing the error message “seed value must be a number or a reference to another field”. To get rid of this, you could however simply turn off the feature of seed and simply use the randomize to true. It should also work smoothly (if you wish to randomize your choice).

1 Like

Thank you, it is helpful.

1 Like

Hi Kal_lam

Is it possible to make a random part of the answer choices.
Answer choices:

  1. Apple
  2. Orange
  3. Bananas
  4. Others … (specify)

the answer choices are random, except number 4 …

How to write it in XLSForm?

Hi @akoh,

Welcome back to the community! Would you mind having a look at the discussion that has happened earlier (which states its impossible). For details pleas have a look at the thread here.

Have a great day!

1 Like

How do you turn off the Seed feature?

You could simply uncheck the randomize as shown in the image above. Save the changes and then redeploy!

I did that, and I still received this message

Unexpected KoBoCAT error 400: b’{“detail”:“seed value must be a number or a reference to another field.”}’

I am also not able to preview

OK if this is the case, please follow the steps outlined as below:

  • Download your xlsform.
  • Make changes.
  • Replace the xlsform in the server.
  • Deploy/redeploy.
1 Like

Will try thanks

1 Like