Superscript and subscript notations in dropdown fields

Adobe Community Professional ,
May 08, 2020 May 08, 2020

Copy link to clipboard

Copied

I would need to put raw chemistry formulas in dropdown lists or values in scientific notation, it is therefore necessary for these two notations to access the superscript and subscript notations.

CH4 is not CH4 and even worse when writing 1.7.103 and 1.7.103!


Are there escape characters or encodings for the items in the dropdown fields?

 

Thank you.

TOPICS
Acrobat SDK and JavaScript, How to, PDF forms

Views

575

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
community guidelines

correct answers 1 Correct Answer

Adobe Community Professional , May 09, 2020 May 09, 2020
Sorry, just saw you were referring to drop-down fields... In that case the answer I provided above doesn't apply. What you can do is use the special unicode characters for those symbols, but then you are limited to just those, of course. For example, this is the SUPERSCRIPT THREE character: ³ 

Likes

Translate

Translate
Adobe Community Professional ,
May 09, 2020 May 09, 2020

Copy link to clipboard

Copied

up

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
community guidelines
Adobe Community Professional ,
May 09, 2020 May 09, 2020

Copy link to clipboard

Copied

Yes, this is possible to do in a text field, but you have to set it first as having Rich Text Formatting (under its Properties, Options tab).

Once you've done that you can enter the text as normal and then change it to super- (or sub-)script by pressing Ctrl+E, selecting the text you want to modify and clicking the relevant buttons in the floating toolbar that will appear, called "Form Field Text Properties". It should look like this:

 

try67_0-1589014558783.png

 

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
community guidelines
Adobe Community Professional ,
May 09, 2020 May 09, 2020

Copy link to clipboard

Copied

Sorry, just saw you were referring to drop-down fields... In that case the answer I provided above doesn't apply.

What you can do is use the special unicode characters for those symbols, but then you are limited to just those, of course.

For example, this is the SUPERSCRIPT THREE character: ³ 

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
community guidelines
Adobe Community Professional ,
May 09, 2020 May 09, 2020

Copy link to clipboard

Copied

Thank you!

I will try that.

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
community guidelines
Adobe Community Professional ,
May 09, 2020 May 09, 2020

Copy link to clipboard

Copied

May be not possible.

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
community guidelines
Adobe Community Professional ,
May 09, 2020 May 09, 2020

Copy link to clipboard

Copied

Subsidiary question: should it be possible to use Unicode caracters in a JavaScript popup menu?

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
community guidelines
Adobe Community Professional ,
May 09, 2020 May 09, 2020

Copy link to clipboard

Copied

Yes. You just need to find their correct code.

For the example I provided above it's "\u00B3".

See: https://www.fileformat.info/info/unicode/char/00b3/index.htm

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
community guidelines
Adobe Community Professional ,
May 09, 2020 May 09, 2020

Copy link to clipboard

Copied

Mille mercis !

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
community guidelines
Adobe Community Professional ,
May 09, 2020 May 09, 2020

Copy link to clipboard

Copied

I just tried but it does not seem to work.

JavaScript popup menu only displays superscript 2 and 3, unlike the dropdown field that is OK.

 

See this file with two menus, filed as same: https://documentcloud.adobe.com/link/track?uri=urn%3Aaaid%3Ascds%3AUS%3A5476bc75-3516-422f-badc-32ae...

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
community guidelines
Adobe Community Professional ,
May 09, 2020 May 09, 2020

Copy link to clipboard

Copied

You'll notice that the SUPERSCRIPT SIX character, for example, belongs to a different "block" than the TWO or THREE versions (Superscripts and Subscripts vs. Latin-1 Supplement). My guess is the latter is supported by the font used for the pop-up menu, while the latter is not.

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
community guidelines
Adobe Community Professional ,
May 10, 2020 May 10, 2020

Copy link to clipboard

Copied

Both fields uses the same standard font:

 

Capture_062.png

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
community guidelines
Adobe Community Professional ,
May 10, 2020 May 10, 2020

Copy link to clipboard

Copied

LATEST

That's not the issue. The issue is the font used in the pop-up menu itself.

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
community guidelines