close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Dependent dropdown and Bootstrap Select-picker don't work together

Thread began 4/02/2020 1:06 pm by SCar87011738 | Last modified 4/09/2020 1:33 pm by Ray Borduin | 76 views | 12 replies |

SCar87011738

Dependent dropdown and Bootstrap Select-picker don't work together

Hello all,
I'm updating a Databridge 1 website where I created a form with a dependent dropdown menu using the "CREATE array list" and "set selected in list" SBs.
Since this site uses Bootstrap-select (http://silviomoreto.github.io/bootstrap-select) I need to use it along webassist dynamic dropdown menu.
But it simply doesn't work.
The dependent dropdown menu work perfectly if I don't apply the select-picker class to the select "Punto vendita"; (see page index.php as in the readme.txt file).
But once I apply the class to the select field ("punto vendita") the dependent dropdown behaviour doesn't work anymore.
Unfortunately I can't use Databridge 2 for this site. I have no time to convert and test since I'm really under the deadline.

To get the idea of the problem, please load the pages specified on the readme.txt (private attachment).

The field with the problem are "tipo_punto_venduta_reg" and "punto_vendita_reg".

I'm trying to fix this in all ways but I'm not a good programmer.

Is there a way to make it work?
TIA
tony

Sign in to reply to this post

Ray BorduinWebAssist

I'd need FTP access and a URL to work on this. I've helped someone in the past with the same issue. The problem is that the bootstrap styled list uses a div or UL elements and hides the actual select list. When you change the select list value it becomes out of sync with the display so you have to add javascript to refresh or reset the list value displayed by bootstrap.

Sign in to reply to this post
Did this help? Tips are appreciated...

SCar87011738

replied in private.

Sign in to reply to this post

Ray BorduinWebAssist

What URL can I use to browse to that page. I can't seem to navigate to it.

Sign in to reply to this post
Did this help? Tips are appreciated...

SCar87011738

Sorry to be late.
Replied in private.

Sign in to reply to this post

Ray BorduinWebAssist

I can't seem to access that page since it has challenge-response authentication and the username and password you sent don't work.

I'll need to get FTP access to edit the page and I'll need to be able to browse the page in order to debug and fix the issue.

Sign in to reply to this post
Did this help? Tips are appreciated...

SCar87011738

Replied in private.

Sign in to reply to this post

Ray BorduinWebAssist

You need to refresh the list when you update the options. I was able to fix the problem by adding this to the code wherever you repopulate the list:

$('#punto_vendita_reg').selectpicker('refresh');

I found the answer by looking at the selectpicker documentation here:
https://developer.snapappointments.com/bootstrap-select/methods/#selectpickerrefresh

Sign in to reply to this post
Did this help? Tips are appreciated...

SCar87011738

Thanks very much, Ray.
Hope you are good there. Here in Italy it's getting a bit better.
Tony

Sign in to reply to this post

SCar87011738

Hi Ray,
there is only a glitch that I'm trying to iron out without success.
If WA server validation fails, the "punto_vendita_reg" select displays the value and not the label. If you display the select content it is empty.
There something wrong in the onload actions, but I cannot find the error.

You can get an idea filling the form and forcing it to not validate using two different email addresses. Even a wrong "Codice fiscale" would make it fail.
So, after the page load you would see the problem on the "punto_vendita_reg" select.
What can I do to fix this Last problem?

TIA again.
Tony

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...