Filling in/Updating the Selections in a "PICK LIST" Column in Smartsheet

I am currently exploring the possibility of utilizing the Smartsheet API to automate various tasks on my sheets. I have not decided on a specific programming language yet, but I have been familiarizing myself with json and JavaScript.

After looking into the functionality of GET Sheets, I can extract details about sheets and interact with them through a Pick list feature. Additionally, I have come across code snippets that demonstrate how to modify existing entries in rows by changing selected options.

My goal is to create a script that automatically updates the Row Items within the Pick list. Any advice or suggestions on how to achieve this would be greatly appreciated. Thank you for your assistance.

Answer №1

To modify the selection choices for each cell within a PICKLIST column, you can use an Update Column request and provide the picklist options in the options property of the request. Here is an example:

PUT /sheets/{sheetId}/columns/{columnId}
{
    "title":"First Column",
    "index":0, 
    "type" : "PICKLIST", 
    "options" :["One","Two"]
}

You can find more information about the Update Column operation in the documentation: .

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Populate the attributes of an alpaca with a variable

Creating a form dynamically using Alpaca Forms is a requirement and the given code snippet serves as a starting point: $("#form").alpaca({ "schema": { "type":"object", "pr ...

Struggling to store the canvas data, the file ends up blank

I've been attempting to upload an image from a canvas to a server using ajax, but every time I end up with an empty image file that is only 879 bytes. I can't seem to figure out what I'm doing wrong. If someone could take a look, I would gre ...

How can you incorporate TypeScript's dictionary type within a Mongoose schema?

When using TypeScript, the dictionary type format is: { [key: string]: string; } However, when I try to define a custom schema in mongoose, it doesn't work as expected. const users = new Schema({ [key: string]: String, }); I also attempted t ...

Modifying nvarchar(max) fields in SQL Server with a vast amount of data

I am attempting to manually update a column in my SQL Server database that is of type nvarchar(max) with a large JSON string parsed as text. The query I am using is pretty straightforward: UPDATE Books SET Story = '' WHERE Id = 23 However, th ...

Alert box in Vue.js

Embarking on my journey with VueJS. I previously implemented an alert box using jQuery. Now, I am attempting to recreate that in VueJS. Here is my current progress: 1- Developed a component named NovinAlert.vue which includes: <template> & ...

unable to toggle the navbar

Currently, I am facing an issue with the navbar-toggle button while using Bootstrap. Initially, I thought the problem was with my navbar code, so I tried pasting the example from the Bootstrap Website, but it did not work either. The button appears, but t ...

Barba.jS is causing a delay in loading scripts after the page transition

One of my index files includes Gsap and Barba JS, while an inner page includes additional JS files such as locomotive.js and OWLcarousel.js. These two JS files are not necessary for the index page. However, when transitioning from the index page to the inn ...

JQuery's addClass function is not functioning properly

Check out the code snippet below: function toggleAccessRequests() { var buttonValue = $("#showAccessRequests").val(); if (buttonValue == "Show") { $(".hideAccessRequest").removeClass("hideAccessRequest"); $("#showAccessRequests").v ...

Using PHP to perform live calculations with arrays in real time

Currently, I am working on developing a new system for a client that allows them to create bookings and invoices to send to their clients. One specific requirement my client has is the need for a table column to be added below the container columns in whi ...

How can I input text into separate tabs using a specific method?

I've been struggling with this issue for a while now and here's the code I have so far: <html> <head> <script src="http://mihaifrentiu.com/wp-content/themes/mf/js/jquery_1.7.1.min.js" type="text/javascript"></scr ...

Iterating over elements using ng-repeat, without displaying any content within ng-view

I am currently working with a controller: function ItemsController($scope, $http){ $scope.init = function(){ $scope.siteItems = [ {id:'1', path:'img/1.png'}, {id:'2', path:'img/2.png&a ...

Retrieve a URL from a string using Javascript

After hours of searching, I'm still stuck on this issue that seems like it could easily be solved with a quick Google search. Basically, I have this string that I'm ajaxing from another site: 'function onclick(event) { toFacebook("http://w ...

Which is the better approach for performance: querying on parent selectors or appending selectors to all children?

I currently have 2 mirror sections within my DOM, one for delivery and another for pickup. Both of these sections contain identical content structures. Here's an example: <div class="main-section"> <div class="description-content"> ...

Strip all textual content from within HTML div elements while retaining the original HTML tags and formatting

I currently have the following HTML code: <div> Here <a href="#"> is </a> <p> Text, that I want to </p> be removed </div> This is what I desire: <div> <a href="#"> </a> <p& ...

Recursive array filtering

My goal is to recursively filter my table using the key "excludeInMenu". I have successfully filtered the first table but am struggling with filtering the second content within "Items". Here is the code snippet I am currently using: {routes.filter(route = ...

Exploring Filtering, Slicing, and Sorting Techniques with Angular Factory in JavaScript

I am currently working on generating a filtered, sorted, and sliced list of data items in my Angular application. After successfully sorting and slicing the data, I encountered an issue when using dataHandler.filter. The error message 'Cannot read pro ...

Generating Unique Random DIV IDs with JavaScript

Does anyone know of a JavaScript solution to generate unique random DIV IDs? I am currently using PHP for this purpose. <?php function getRandomWord($len = 10) { $word = array_merge(range('a', 'z'), range('A', &apos ...

The Three.js effect is functional on Firefox but experiencing issues on Chrome

I have recently implemented a recursive search for adjacent faces using a Half Edge data structure and I am facing an issue where the effect is visible on Firefox but not on Chrome. I am seeking assistance in resolving this problem. Any help or suggestions ...

Triggering an event just once upon sending an Ajax request with jQuery

I've implemented a feature where I have dropdown menus populated from SharePoint using SPServices, and it's working well. However, when I click on a button to load data from SharePoint and use the dropdown selections as filters for populating a t ...

What is the best way to connect individual buttons to a dynamic div that displays different content depending on the button clicked?

Hey there! I'm diving into the world of JavaScript and HTML, and I need some guidance on creating a menu that can toggle visibility of specific content in div(s) depending on which button (picture1-12) is clicked. My idea is to have one div that can d ...