Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Object type "select" / Acccess: Readonly

Questions related to using nuBuilder Forte.
Locked
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Object type "select" / Acccess: Readonly

Unread post by toms »

Hi,

Even when Access = Readonly, an item can still be selected from the select object and the change is also stored in the db.
readonly.png
Possible solution:

This makes the select readonly but you can still see the items (greyed out)

Code: Select all

$('#myfield option:not(:selected)').prop('disabled', true);
readonly_dropdown.png
You do not have the required permissions to view the files attached to this post.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Object type "select" / Acccess: Readonly

Unread post by admin »

toms,

A patch for that is now on Github.

Let me know if it works for you.


Steven
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: Object type "select" / Acccess: Readonly

Unread post by toms »

It works, thanks!
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Object type "select" / Acccess: Readonly

Unread post by admin »

.
Locked