Dear Sir/Madam,
Refer to a cred_field, there is an argument select_text to display the text if no option be selected from the select tag
[cred_field field='@member-application.parent' class='form-control' output='bootstrap' select_text='' required='false' urlparam='mid' readonly='true']
How about the cred_generic_field
[cred_generic_field type='textfield' field='wpcf-app-member-number' readonly='true' urlparam='mno']
{
"required":0,
"default":"[types field='member-number'][/types]",
"persist":1
}
[/cred_generic_field]
I try adding the select_text argument in shortcode or its array but not work
[cred_generic_field type='select' field='wpcf-app-proposed-tablet' select_text='--- Please select option ---']
{
"required":1,
"options":[ [get_tablet] ],
"persist":1,
"select_text": "--- Please select option ---"
}
The result is still showing "--- not set ---"

Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Hello. Thank you for contacting the Toolset support.
To set default option for your generic select dropdown, you will have to add the attribute "default":[""]:
Please check the following example - please note that the default option should be coming from your shortcode [get_tablet]:
[cred_generic_field field="test-select" type="select" class="" urlparam=""]
{
"required":1,
"validate_format":0,
"persist":0,
"default":[""],
"options":[
{"value":"","label":"Please Select"},
{"value":"a","label":"a"},
{"value":"b","label":"b"}
]
}
[/cred_generic_field]