π·οΈSuffixes and prefixes
Convert an open text label into a suffix or prefix
Last updated
Was this helpful?
Convert an open text label into a suffix or prefix
Last updated
Was this helpful?
If you already use Numeric validation in the open text, you must add this code first. Otherwise, it won't work.
This code has been tested to be fully compatible with it.
Create your open text question and set a custom label.
Copy and paste the following code into the Javascript editor within the page.
Then, you will need to change this part of the code with your actual parameters.
question code
is the code of your open text.
type
is the modifier that allows you to specify whether the label should be converted to prefix or suffix.
Once done, you should save changes by clicking the save button in the Javascript editor.
question_code
The name of the open text where you want to convert it's label as prefix or suffix.
type
The type of label you want. It can be prefix
or suffix
.
if type
is not defined, the default value will be suffix
.
The label you have just modified will go from looking like this:
To look like this when the label is converted to a prefix
or to this other design, in case it has been converted to a suffix.