Textbox connected to data

Hi,

Im wondering if any one has had the same issue.

I’ve added some textboxes to my page and connected them to my data source. However when they load the style changes completely and I wondered if there was any way of either retaining the original colour of the background and the text?

It wouldn’t be an issue but it is making the text nearly unreadable when in mobile mode.

Thanks

Hi Christopher,

are you binding Rich Text fields to those text boxes? Rich Text fields can have their own style and override the text style you set in text box properties.

Otherwise, I would be interested to see what is going on.

Also, if you have connected to you data source via Wix Code’s wix-dataset, then make sure you’re setting the $w(“yourtextfield”).text() as opposed to $w(“yourtextfield”).html(). The second one will remove your text box formatting.

Thanks for taking the time to reply.

I have the textboxes on a dynamic page which are connected through the data.

Here is how the styling is on the editor.


As you can see they have been connected to the appropriate field using the data source.

Here is how they look when published.


Thanks!

When I have inspected the page I can see that the original background colour was rgba(0, 48, 91, 0.7) and when it is previewed it changes to rgba(204, 204, 204, 1). How can I stop it from doing this?

Hi I am trying to have my sites users type into a text box, and add it to a data set for all the sties users to see. How can I do that because I have button connected to the data, and the text box. I also want to let the sites user to label the text box. Can you please help.