Skip to content

Commit

Permalink
feat(form,question): mandatory check in browser
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Apr 14, 2020
1 parent b62e0f9 commit bfe91dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ public function showForm($ID, $options = []) {

echo '<tr class="tab_bg_1">';
echo '<td width="20%"><strong>' . __('Name') . ' <span class="red">*</span></strong></td>';
echo '<td width="30%"><input type="text" name="name" value="' . $this->fields["name"] . '" size="35"/></td>';
echo '<td width="30%"><input type="text" name="name" required="required" value="' . $this->fields["name"] . '" size="35"/></td>';
echo '<td width="20%"><strong>' . __('Active') . ' <span class="red">*</span></strong></td>';
echo '<td width="30%">';
Dropdown::showYesNo("is_active", $this->fields["is_active"]);
Expand Down
1 change: 1 addition & 0 deletions inc/question.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ public function showForm($ID, $options = []) {
'autofocus' => '',
'value' => $this->fields['name'],
'class' => 'required',
'required' => 'required',
]);
echo '</td>';

Expand Down

0 comments on commit bfe91dc

Please sign in to comment.