Combo box shows HTML tags (1 Viewer)

ilanray

Member
Local time
Today, 13:50
Joined
Jan 3, 2023
Messages
116
Hi
I created a form with textbox called "task" which is in HTML template. When I click on the save button it save at the databse with HTML tags.
I would like to create a combox with the task field so in the source field I chose the table. The problem is the combo box display the HTML tags is instead of data like :
aaa
bbb
ccc
I get
<div align=right> aaa </div>
<div align=right> bbb</div>
<div align=right> ccc</div>
I can I solve it?
 

Minty

AWF VIP
Local time
Today, 11:50
Joined
Jul 26, 2013
Messages
10,371
You can't set the combo display to Rich text so you will have to get a bit clever with it I'm afraid.
In the combo box rowsource create a column:

MyText: PlainText(YourRichTextField)

Then use that as the displayed column?
 

ilanray

Member
Local time
Today, 13:50
Joined
Jan 3, 2023
Messages
116
i'm now sure I understood you. What do you mean by create a column:
MyText: PlainText(YourRichTextField)
at my rowsource I have a query that load the values for the combo box
You mean i need to create another field at the database which save the data in plain text?
 
Last edited:

Minty

AWF VIP
Local time
Today, 11:50
Joined
Jul 26, 2013
Messages
10,371
No, in your combobox row source query, simply add that as a calulated field, and use it instead of the current Richtext field.
If it still makes no sense, then post up the SQL of your rowsource for the combo box.
 

ilanray

Member
Local time
Today, 13:50
Joined
Jan 3, 2023
Messages
116
can you please show me how it's done?
my query is
select id,description
from tasks

I would like the description field will be plain text

thanks
 

Gasman

Enthusiastic Amateur
Local time
Today, 11:50
Joined
Sep 21, 2011
Messages
14,303
Not even ordered by? :(

Code:
select id,PlainText(description) AS PlainDesc, Description
from tasks
 

Users who are viewing this thread

Top Bottom