Skip to content
Snippets Groups Projects
Commit 8a64f2fb authored by Benjamin Baer's avatar Benjamin Baer
Browse files

Merge branch 'b9674-selectRequired' into 'master'

Now possible to set required to select.

See merge request !217
parents 6e3e1c2e 95bb1572
No related branches found
No related tags found
Loading
Checking pipeline status
...@@ -1251,6 +1251,12 @@ var QfqNS = QfqNS || {}; ...@@ -1251,6 +1251,12 @@ var QfqNS = QfqNS || {};
if (configurationItem.required !== undefined) { if (configurationItem.required !== undefined) {
element.setRequired(configuration.required); element.setRequired(configuration.required);
if(element.$element) {
if(element.$element.is("select")) {
element.$element.prop('required', true);
element.$element.attr('data-required', 'yes');
}
}
} }
} catch (e) { } catch (e) {
n.Log.error(e.message); n.Log.error(e.message);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment