Project

General

Profile

Actions

Feature #21678

open

Mark required fields conditionally based on other fields

Added by Marek Hulán about 7 years ago. Updated almost 7 years ago.

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

Description

"Puppet Environment" is a required field for provisioning new hosts. However, the form does not flag this field as being required. Other required fields have an "*" next to them to denote them as being required.

As it turned out, the puppet environment is required field only when a puppet master is selected on the host.

It would be nice to have a possibility to switch required flag based on the rest of the form. The similar behavior can be found at subnet form and I support other places too. Since we don't want to extend already complicate JS code for host form, I suppose this will be possible after we refactor that or reimplement our form helpers.


Related issues 2 (0 open2 closed)

Related to Foreman - Bug #7450: We mark not-required fields as requiredClosedMarek Hulán09/16/2014Actions
Related to Foreman - Feature #20839: implement bookmark creation using reactClosedOhad Levy09/04/2017Actions
Actions

Also available in: Atom PDF