cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Need help with command-line syntax of 'im editfield'

smccoy
1-Newbie

Need help with command-line syntax of 'im editfield'

Hi,

Can someone provide an example of the 'im editfield' command that sets the set of a pick field from active to inactive?

I have tried the following, and a few variations, without success.:

im editfield --picks="value=9,Inactive" "my test field"

Our ultimate intent is coding this in a script. So an example in JavaScript that's invoked by a manual trigger would be even better.

-Sean

1 ACCEPTED SOLUTION

Accepted Solutions

Hi Sean,

you can set pick fields to active, if you list them in your command.

The other way round: pick fields are set to inactive, if you don't list them.

E.g.: Field "my test field" with pick values "green" (0), "yellow" (1) and "red" (2)

The command

im edit field --picks=green:0:none,red:2:none "my test field"

sets the picks "green" and "red" to active, and sets "yellow" to inactive.

The syntax for the --picks-option is: <text>:<value>:<image>,...

View solution in original post

2 REPLIES 2

Hi Sean,

you can set pick fields to active, if you list them in your command.

The other way round: pick fields are set to inactive, if you don't list them.

E.g.: Field "my test field" with pick values "green" (0), "yellow" (1) and "red" (2)

The command

im edit field --picks=green:0:none,red:2:none "my test field"

sets the picks "green" and "red" to active, and sets "yellow" to inactive.

The syntax for the --picks-option is: <text>:<value>:<image>,...

Hi Markus,

Thanks for the information. I'll give that a try.

-Sean

Top Tags