Skip to content

Required value #38

@khriztianmoreno

Description

@khriztianmoreno

Is there any way to be mandatory these fields before submitting to a form?

<div class="col-xs col-md col-xl search-bar-cell hidden-sm-down">
    {{pick-a-date
      class="form-control js-pickadate-date js-pickadate-start"
      name="start_date"
      date=(readonly starDate)
      on-selected=(action (mut starDate))
      placeholder="Start Date"
      options=(readonly extraPickadateOptions)
     required=true
    }}
  </div>
  <div class="col-xs col-md col-xl search-bar-cell hidden-sm-down">
    {{pick-a-time
      class="form-control js-pickadate-date js-pickadate-start"
      name="start_time"
      date=(readonly starTime)
      on-selected=(action (mut starTime))
      placeholder="Start Time"
      options=(readonly extraPickaTimeOptions)
    }}
  </div>

In the official documentation I suggest this, but the truth, this does not work.

Any idea how to solve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions