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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

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

smccoy
12-Amethyst

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

ACCEPTED SOLUTION

Accepted Solutions
mkiessling
12-Amethyst
(To:smccoy)

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
mkiessling
12-Amethyst
(To:smccoy)

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>,...

smccoy
12-Amethyst
(To:mkiessling)

Hi Markus,

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

-Sean

Announcements


Top Tags