Frage

Time Select Field Example Picture

When selecting a time from the drop-down list in sitecore the time options are for the whole day.

How do I remove the time that I never select. For example: I want to remove the times from 8pm - 7am so they cannot be selected and the drop down list only shows 8am to 7pm times to select?

War es hilfreich?

Lösung

go to the template,

in the child of the template select the item that represents the time field,

add a regex in the validation field to validate the selected value, and save

if the user select an invalid value, an error message will appear to warn

use the ValidationText Field to add an error message

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top