I do good lectures with my project.
Thanks to all for the help
My current question
The labeling of a field is in front of the field.
Can I do it over it too?
Like on the picture?

Code: Select all
function custFieldLabelsOnTop(f, e) {
for (var i = 0; i < f.length; i++) {
if (jQuery.inArray(f[i], e) == -1) {
var t = $('#' + f[i]).cssNumber("top");
var l = $('#' + f[i]).cssNumber("left");
$('#' + 'label_' + f[i]).css({
'top': t - 18,
'left': l - 15,
'font-weight': 'bold',
'color': '#3300FF',
'font-size': '13px'
});
}
}
}
if (nuFormType() == 'edit') {
var f = nuSubformObject("").fields; // include all fields of your main form.
custFieldLabelsOnTop(f, []);
}
Janusz wrote:Place that code: $('#your_object_id').nuLabelOnTop()
in the JS/Custome code of your Form.
IF you want for example to change all labels on your form together with css you can use following code as well:Place it in the JS Custome code.Code: Select all
function custFieldLabelsOnTop(f, e) { for (var i = 0; i < f.length; i++) { if (jQuery.inArray(f[i], e) == -1) { var t = $('#' + f[i]).cssNumber("top"); var l = $('#' + f[i]).cssNumber("left"); $('#' + 'label_' + f[i]).css({ 'top': t - 18, 'left': l - 15, 'font-weight': 'bold', 'color': '#3300FF', 'font-size': '13px' }); } } } if (nuFormType() == 'edit') { var f = nuSubformObject("").fields; // include all fields of your main form. custFieldLabelsOnTop(f, []); }
For a quick try - when on the form - open console (to open press F12) and copy paste that code to the console and you will see the result immediately.
kev1n wrote:It goes in the form's Custom Code.