# Label is not displayed when using path\_selector

**URL:** <https://discourse.openondemand.org/t/label-is-not-displayed-when-using-path-selector/3281>\
**Category:** Get Help\
**Created:** [February 22, 2024, 1:26am UTC](https://discourse.openondemand.org/t/label-is-not-displayed-when-using-path-selector/3281 "2024-02-22T01:26:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mnakao](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/mnakao/32/1001_2.png) [@mnakao](https://discourse.openondemand.org/u/mnakao)\
**Post date:** [February 22, 2024, 1:26am UTC](https://discourse.openondemand.org/t/label-is-not-displayed-when-using-path-selector/3281/1 "2024-02-22T01:26:01Z")

</div>

Dear all,

I configured the path\_selector in OOD 3.1.1 as below.

```auto
# form.yml.erb
  base_dir:
    widget: "path_selector"
    label: Base directory (PYTHONUSERBASE)
    show_hidden: true
    show_files: false

```

However, the web form is as shown below, and the label value is not displayed.  
 ![a](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/1/1f23335d19cfcdacd26a16eefe5dc29b09a4c808.png)

With other widgets, the above setting works, so it seems like this is a problem only with path\_selector.

Also, on a side note, if I saved form.js in the application directory, path\_selector did not work properly.

Best,

---

<div class="post-metadata">

**Author:** ![travert](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/travert/32/3074_2.png) [@travert](https://discourse.openondemand.org/u/travert)\
**Post date:** [February 22, 2024, 5:57pm UTC](https://discourse.openondemand.org/t/label-is-not-displayed-when-using-path-selector/3281/2 "2024-02-22T17:57:44Z")

</div>

Thanks for mentioning this.

I also am not able to get this to work correctly based off the docs from the release, so I’ve opened a bug report to try and figure this out. It’s possible the docs are either incomplete, or there’s an issue here.

I’ve opened an issue against this here:

> <https://github.com/OSC/ondemand/issues/3367>
>
> We had a discourse come in after the \`3.1\` release about the path selector:
> htt…ps://discourse.openondemand.org/t/label-is-not-displayed-when-using-path-selector/3281
> 
> Upon trying to answer or recreate it was discovered the current docs for this feature don't see to work if you follow them.
> 
> Using \`3.1\` and creating a \`form.yml\` with the following:
> \`\`\`yml
> working\_dir:
> label: "Select Directory"
> widget: "path\_selector"
> directory: "/path/to/my/home" # obfuscating, not actual text used
> show\_hidden: true
> show\_files: false
> \`\`\`
> This results in a pop up that cannot be interacted with.
> 
> If you leave out the \`directory\` as the user does in the discourse sometimes the pop-up shows up, sometimes nothing happens. But again, even if the pop-up shows up I cannot interact with it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [August 20, 2024, 5:58pm UTC](https://discourse.openondemand.org/t/label-is-not-displayed-when-using-path-selector/3281/3 "2024-08-20T17:58:28Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
