Project

General

Profile

Actions

Bug #7450

closed

We mark not-required fields as required

Added by Marek Hulán over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

If the validator has some condition (:if => $smt, :unless => $smt) we shouldn't mark the field as required. In this case we simply can't tell without AJAX call because validity may depend on another field of the form. Btw there was a project translating AR validations to javascript (client side validations) but IIRC it's discontinued. Also it was quite big thing.


Related issues 3 (1 open2 closed)

Related to Foreman - Feature #6400: mark required fields in formClosedJoseph Magen06/26/2014Actions
Related to Foreman - Bug #7560: add :required => true on host fields that have conditional validation if host.managed?ClosedJoseph Magen09/21/2014Actions
Related to Foreman - Feature #21678: Mark required fields conditionally based on other fieldsNew11/15/2017Actions
Actions

Also available in: Atom PDF