Skip to Main Content

Breadcrumb

Overview

The FOS - Text Snippet Expand dynamic action plug-in extends one or multiple input fields to listen for entered shortcuts (e.g. "lol") and immediately expands them to a long version (e.g. "laughing out loud"). This is similar to an auto-correct functionality.

This plug-in works on Text Fields, Text Areas, and CKEditor4 fields (APEX native and the "FOS - CKEditor4 plug-in"), as well as in Interactive Grids.

Shortcuts and their expanded text are provided as a query. Additionally you can also define stop-characters for a shortcut, that's the key after which a shortcut is evaluated. Default is space, period, comma, question mark, exclamation mark.

Examples

Textfields and Textareas

The following substitutions will be made in the textfield and the textarea. Simply type one of the display values and hit Tab, Space, Period or Enter.

Substitute What?Substitute With
;)😉
apexOracle APEX
DADynamic Actions
love❤️

CKEditor4

This plug-in supports the APEX CKEditor4 (Rich Text Editor), as well as the FOS - CKEditor4 plug-in.

The "Rich Text Editor" offers more flexibility and usescases when using this plug-in, as we can also use HTML in our return value. See the following examples:

Substitute What?Substitute With
egreetDear ladies and gentlemen,<br>
esigKind regards,<br>FOEX Fosman<hr><pre>https://fos.world<br>001-555-FOS</pre>

Interactive Grid

This plug-in supports the Interactive Grid (IG). You can use it with text fields and textareas. You just need to define a "Static ID" for the column and use an "Affected Elements" jQuery Selector to locate it.

Substitute What?Substitute With
;)😉
apexOracle APEX
DADynamic Actions
love❤️

Interactive Grid Text Expander

Design

You can preview the plug-in setup as you would see it in page designer. You can either do this by clicking this button in the top right corner of each example, or you can see all the examples together in the region below.

Looking at the examples you'll see just how easy the plug-in is to use. Don't worry about changing any values as they aren't saved. We actually encourage you to change them, so you can see the behaviour of the attributes and their help text.

FAQ

  • Does it work for the "Rich Text Editor" in APEX 20.2?

    No, it does not currently work for the "Rich Text Editor" type in 20.2. This is because the editor has been upgraded to CKEditor5. We do plan to look at adding support in the future.