Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Sep 03, 2010 @ 02:18
    Tim
    0

    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

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Sep 03, 2010 @ 03:00
    Tim
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft