Page 1 of 1

[Changed] Select Objects Behaviour (nuBuilder 4.9.x)

Posted: Tue Sep 23, 2025 11:46 am
by admin
There has been a change with the Select objects.

Previously, all Select Objects contained an empty item at the top of the list.
With version Files Version: V.4.9.2-2025.09.22.00, this has changed.
  • If Validation is set to None, there is still an empty item.
  • If Validation is set to No Blanks, No Duplicates, or No Duplicates/Blanks, there is no longer an empty item.
Technically:
  • itemindex = -1 is set if it is a new record or no item is chosen.
  • Code: Select all

    $('#select_object_id').val()
    now returns null if no item is chosen.
  • Code: Select all

    nuGetValue('select_object_id')
    still returns an empty string (this is unchanged from before).
Reason for Change

There is no need to display a blank option when blanks are not allowed by the validation rules anyway.
This makes the Select objects cleaner and more consistent with the configured validation.