31 Dec 2018: Thank you to our knowledgeable and friendly forums users for another great year. We are aware of the uptick in spam accounts and are doing our best to ban these at first sight. Thank you for your patience!

Importing data against radio buttons


I was trying to import data using web services against a radio button. The value 0 is assigned to the "No" and the value 1 is assigned to the "Yes" answer in my CRF. 
Every time I imported the value 1 it was fine, but when I imported 0 the value wasn't recorded in the database (the radio button remained unchecked). According to the web service messages everything went fine but I have missing radio button values.
Has anybody else experienced this issue before?



  • kristiakkristiak Posts: 1,318 ✭✭✭
    What happens if you enter "No" directly on the CRF page? Does it work normally then?
  • csabahalmagyicsabahalmagyi Posts: 21
    It worked fine. 
  • lindsay.stevenslindsay.stevens Posts: 404 ✭✭✭
    via Email
    I've found that the web services won't check item values other than that
    item oids match, so it would accept dates in an int field etc. Maybe first
    check you're really sending a zero, or that the item choice isn't a capital
    O in a string field.

    Or try seeing what is being submitted to the database. There is a
    postgresql.conf setting called log_statement that is on 'none' by default.
    Set it to 'all' and every submitted statement will be logged. Then restart
    the database server (or just reload configuration), run your web service
    code, and check the logs for clues.
    On 23/01/2015 10:37 PM, "csabahalmagyi"
  • csabahalmagyicsabahalmagyi Posts: 21
    Thank you for your answer Lindsay!
This discussion has been closed.