Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

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

Information about updates, news, Code Library
admin
Site Admin
Posts: 2828
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 times

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

Unread post 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.
Post Reply