Developer forum

Forum » Ecommerce - Standard features » Inconsistent rendering of ListBox values

Inconsistent rendering of ListBox values

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

I have a weird issue (using 9.7.2) with a product field of type ListBox:

  • The value is properly saved in the DB
  • But the interface does not render the saved values properly

https://www.screencast.com/t/naZeCNxE3PH

 

In the screencast you can see that:

  • The option "-- Nothing selected--" is always selected, regardless of the value "0" existing in the database
  • The option "AldeĀ®" is loaded accurately

 

This happens in both Ecommerce and PIM, so it does not seem to be related with a particular screen, and the problem with this is that the customer cannot trust the values that have been loaded.

 

Does anyone have a clue why that is and if there's any workaround until there's a fix for it?

 

Best Regards,

Nuno Aguiar


Replies

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Small update. This seems to only happen when the Render type = Multiselect

I tested with Checkbox list and I did not reproduce the issue

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

I was not able to reproduce the issue with PIM/Ecom product on last DW9.7.4 - proof (PIM, the same results for ecom product).

BR, Oleg QA 

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Oleg,

 

I don't know if it's based on volume or a specific character in one of the options. I used a clean Rapido install and added a few more options (not all the ones in the website) and I was able to reproduct the issue. https://www.screencast.com/t/vYJ9NFi1qL

 

Feel free to get into that URL to copy the labels and values we're reproducing the problem with.

 

It may not be clear from my screencast, but I had selected a bunch of random options (I did not scroll down in the multiselect) before going to unselect those 2.

 

Best Regards,

Nuno Aguiar

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply
This post has been marked as an answer

Hi Nuno,

Yep, now I'm able to reproduce the issue when no value in option (first one in your case), it works properly otherwise. I see the same behavior on DW89 as well. But what's a reason not to input an value in the option?

BR, Oleg QA   

Votes for this answer: 1
 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Oleg,

 

It happens for me even if you put a value there. I tried it with "0" as the value because those options are being genereated by a custom development and the value matches an Item Id. 

 

So I don't think the reason comes from the value being empty. There must be something else at play, but I am glad you can reproduce it now.

 

Best Regards,

Nuno Aguiar

 

You must be logged in to post in the forum