Home/Support/Support Forum/how to set non-default value of drop list
New and improved user forum site coming soon
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

how to set non-default value of drop list

0 votes
Dynamic C 9.62

static const char* const mode_options[] =
{
"first",
"second",
"third"
};

When setting up a web form, e.g.:
sspec_setfvoptlist(form, var, mode_options, 3);

...how do you initialize the HTML_FORM_PULLDOWN so
that a non-default value is displayed, say for example I want to initialize the drop list so that "second" is displayed instead of the default value, "first".
asked Jun 6, 2014 in Rabbit Software by hibbity New to the Community (1 point)

Please log in or register to answer this question.

1 Answer

0 votes
Resolved:

Solution is to initialize the second param in the function
sspec_addvariable() before sspec_setfvoptlist() is called.
answered Jun 6, 2014 by hibbity New to the Community (1 point)
...