Forum Discussion

dom1n1que's avatar
dom1n1que
Occasional Contributor
9 years ago
Solved

How do you set the value of a custom field in Collaborator using JSON?

The default custom field Overview, is in use, and we added three dropdowns to the Review Custom Fields in Collaborator. I am able to use JSON to set a value for the Overview text field, but cannot do the same with the dropdowns. I'm using the customFields parameter and setting a name and value for each field. Are dropdowns treated differently than text fields in JSON/Collaborator? 

  • Hi

    All custom fields are treated in the similar way. Try this command:

    {
      "command" : "ReviewService.editReview",
      "args" :{ 
       "reviewId" : "12345", 
       "customFields": [{"name":"Your_List_Title", "value":["List_Value"]}]
     }
    }

     

1 Reply

  • ArtemS's avatar
    ArtemS
    SmartBear Alumni (Retired)

    Hi

    All custom fields are treated in the similar way. Try this command:

    {
      "command" : "ReviewService.editReview",
      "args" :{ 
       "reviewId" : "12345", 
       "customFields": [{"name":"Your_List_Title", "value":["List_Value"]}]
     }
    }