how to hide dropdown default item

New Here ,
Nov 16, 2017

Copy link to clipboard

Copied

iam new in adobe component field.
i have a drop down, with 4 item. where 1 item was a default item.

adobe.png

i set "--select--" as default item.
what i want is when i click on the drop down. item `--select--` was hidden or not show.

but then i click on my custom button where it is a reset form. the drop down value back to pointing at `--select--`

thanks

TOPICS
Acrobat SDK and JavaScript, Windows

Views

120

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

how to hide dropdown default item

New Here ,
Nov 16, 2017

Copy link to clipboard

Copied

iam new in adobe component field.
i have a drop down, with 4 item. where 1 item was a default item.

adobe.png

i set "--select--" as default item.
what i want is when i click on the drop down. item `--select--` was hidden or not show.

but then i click on my custom button where it is a reset form. the drop down value back to pointing at `--select--`

thanks

TOPICS
Acrobat SDK and JavaScript, Windows

Views

121

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 16, 2017 0
Adobe Community Professional ,
Dec 25, 2017

Copy link to clipboard

Copied

If you are the developer of the form, then you can just use a space instead of the "--select--" string if you want to control the displayed value. If you want to hide the "--select--" text when printing, you can add some custom JavaScript to the "Will print" action to hide the field and then add some JavaScript to the "Did print" action to display the field.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 25, 2017 1