'data-filepicker: true' doesn't show 'choose path' button

Hello,

This is bit strange one because it was working for me intitially but after making few changes I realized that I no longer can see “Choose Path” button even when ‘data-filepicker: true’ is present in form.yml.erb

Here is my form.yml.erb

---
cluster: "codon"
form:
  - account
  - bc_num_hours
  - working_dir
  - version
attributes:
  account:
    label: "Project"
    widget: select
    options:
      <%- groups.each do |group| %>
      - "<%= group %>"
    <%- end %>
  version:
    widget: "select"
    label: "Codeserver Version"
    options:
      - ["4.8", "4.8.3"]
      - ["3.9", "3.9.3"]

  working_dir:
    label: "Working Directory"
    data-filepicker: true
    data-target-file-type: dirs  # Valid values are: files, dirs, or both
    readonly: false
    help: "Select your project directory; defaults to $HOME"

Rendered form

Alright. Replacing with the latest form.js from Releases · OSC/bc_js_filepicker · GitHub fixed the issue.

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