Seeing that no one helped you yet, let me help you here :).
You can set a default value on an input field with the "value" property.
Use this HTML:
<div class="field-row">
<span class="crud-label">${msg("bel.password")}: *</span>
</div>
<div class="field-row hidden" type="hidden">
<input class="crud-input" id="${el}-create-password" value="defaultPassword" type="password" maxlength="100" />
</div>
<div class="field-row">
<span class="crud-label">${msg("label.rifypassword")}: *</span>
</div>
<div class="field-row hidden" type="hidden">
<input class="crud-input" id="${el}-create-verifypassword" value="defaultPassword" type="password" maxlength="100" />
</div>
This will result in your default password values to be "defaultPassword".
Now, to hide these fields, you can use CSS:
.hidden {
display: none;
}
Note that in the HTML I added extra class names. You add extra class names by just adding more to the class="", seperated by a space.
If you use jQuery or something, you can also set the display to none with:
$(".hidden").css("display", "none");
Hope this helped you!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…