Welcome to the nuBuilder Forums!

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

Strange behavior of the Select field

Questions related to customising nuBuilder Forte with JavaScript or PHP.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Strange behavior of the Select field

Unread post by kknm »

On the main form there is a form (IFRAME), in which there is a table with only 2 rows and 10 fields. To select the beginning of the line, use the (Select) field.
At first I used json/array of type ['One','Two'] , but after a few days I noticed that fields were selected from the list, but were not saved in the database... When I clicked the Save button, the field with Select was cleared.in the database this field was of type varchar(25)
Then I switched to a new method of selecting from Select like 0|One|1|Two but... another problem appeared - the fields are selected correctly, but when saving, the field (Two) is replaced by One and naturally only 0 is saved in the database.in the database this field was of tinyint type
How to deal with this?
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Strange behavior of the Select field

Unread post by kev1n »

Hi,

Are you experiencing this problem only in that (iframe) form, or in any form where select objects are used?
Also post a screenshot to illustrate "On the main form there is a form (IFRAME), in which there is a table with only 2 rows and 10 fields. To select the beginning of the line, use the (Select) field."
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Strange behavior of the Select field

Unread post by kknm »

Vag.png
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Strange behavior of the Select field

Unread post by kev1n »

So it is not an iFrame but a Subform?
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Strange behavior of the Select field

Unread post by kknm »

Yes.
This is before saving, after saving the first column, the second line takes the value of the first column.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Strange behavior of the Select field

Unread post by kknm »

By the way, this is not the only oddity of this subordinate form. Columns 1-15 are prefixed with 'v', i.e. v1,v2,v3...
When you enter numeric values ​​in these columns, when saved, they are not saved in all columns - only in 5-15.
Maybe this is due to some limitation on the number of columns?
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Strange behavior of the Select field

Unread post by kev1n »

Can you take a screenshot of what it looks like before and after saving? Just enter some values before saving so I get a better picture of what is happening.
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Strange behavior of the Select field

Unread post by kknm »

before.png
after.png
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Strange behavior of the Select field

Unread post by kev1n »

Only the first object is a select? The other objects are input objects? So the problem is not the select, but the other fields?
kknm
Posts: 366
Joined: Sat Apr 11, 2020 12:03 am
Has thanked: 3 times
Been thanked: 4 times
Contact:

Re: Strange behavior of the Select field

Unread post by kknm »

This form is independent of other forms on the main form. Only manual entry into this table.
Post Reply