Is it possible to change the default “–None–” value (when you have a required field and enable the ‘Add “None” option’) to different text? In our case, we would like to tell the user to select something (“Select…” for example) whereas “–None–” implies they selected “None” as their value. This is especially confusing when the dropdown includes the value “None” as one of the options.
Maybe this can be done with labels / translations?
Thanks as always!
- Chris
Hi Chris,
This is possible several ways, depending on how widely you want this change to be applied. In both cases, you will be overriding the Custom Label “select_option_none” that Skuid is referencing internally.
(a) To apply it globally (across all Skuid Pages), you can use Translation Workbench to create a Local Translation/Override.
(b) To apply it locally (on a particular Skuid Page), you can use a JavaScript Resource of type Inline to overwrite the value for the custom label that Skuid loads in by default.
Either way, the effect is the same. Here for our example, we’re replacing “–None–” with “Select an Option…”:
Here is an explanation of how to do each of these strategies:
(a) Global override
- Enable Translation Workbench – go to Setup > Translation Workbench, and click Enable.
- Add English as Language you want to Translate, and make yourself a Translator. (kind of weird, but this is how you do Local Overrides)
- Go to Setup > Custom Labels, and search for the label called “Select Option None” (API Name “Select_Option_None” in the Skuid package.
- Click to create a new Local Translation / Override.
- Select English as the Language, and then enter your text, e.g. “Select an Option…”, for the Translation Text.
- Click Save.
(b) Local override
- Go to the Page Composer for the particular Skuid Page where you’d like this override to be made.
- Add a new JavaScript Resource.
- Set its type to “Inline” (NOT Inline Snippet!!)
- Enter the following for the Resource Body:
(function(skuid){ skuid.label.add({<br> "select_option_none":"Select an Option..." <br> });<br>})(skuid);
5. Click Save.
Zach, is there any way to do this on just one single field on a page? I want to change just a single field to “Prefer not to answer”, which makes things awkward for some other picklists.
I am in need of the same thing.
Has anyone found a way to do this for a single field?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.