Programatically Add Form Values for Fields with PreValues
Hi,
I have a bunch of records I'm trying to import into contour. I found a handy blog post on adding records programatically, which I've used to do the basics of adding a record. I can add basic things like text fields and checkboxes etc, but I can't get adding data for fields with prevalues to work.
In my case, I have a checkbox list with four options. I can add multiple values to the field by adding a string with the name of the items I want to select in, e.g. "research". However, it doesn't add the key relationship to the pre-value to the saved data, so you can't edit the value.
This is driving me nuts, does anyone know how to do this? I don't really want to have to type in several hundred entries by hand if I can possibly avoid it!
Figured it out! You need to add the guid of the pre-value to the list of values, and repeat for as many items in the list as you'd like to select. Yay. Sleep now.
Programatically Add Form Values for Fields with PreValues
Hi,
I have a bunch of records I'm trying to import into contour. I found a handy blog post on adding records programatically, which I've used to do the basics of adding a record. I can add basic things like text fields and checkboxes etc, but I can't get adding data for fields with prevalues to work.
In my case, I have a checkbox list with four options. I can add multiple values to the field by adding a string with the name of the items I want to select in, e.g. "research". However, it doesn't add the key relationship to the pre-value to the saved data, so you can't edit the value.
This is driving me nuts, does anyone know how to do this? I don't really want to have to type in several hundred entries by hand if I can possibly avoid it!
:P
Figured it out! You need to add the guid of the pre-value to the list of values, and repeat for as many items in the list as you'd like to select. Yay. Sleep now.
is working on a reply...