Browse Source

Fixed wrongly-generated IDs

Brendan Abolivier 7 years ago
parent
commit
ca311c575c
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      front/form.js

+ 1
- 1
front/form.js View File

167
 // return: a block containing the field and a label describing it (if enabled)
167
 // return: a block containing the field and a label describing it (if enabled)
168
 function getField(fieldInfos) {
168
 function getField(fieldInfos) {
169
 	var block = document.createElement('div');
169
 	var block = document.createElement('div');
170
-	block.setAttribute('id', fieldInfos.name);
170
+	block.setAttribute('id', 'form_' + fieldInfos.name);
171
 
171
 
172
 	// Declare the variable first
172
 	// Declare the variable first
173
 	let field = {};
173
 	let field = {};