Custom Thread Field error

beerForo

Well-known member
Affected version
2.3
I am requiring a URL in a rich text box for YT embeds, and in testing, I can just enter a word and it saves (not a URL). It should prompt for a valid URL format.
1732320879142.webp
Side note: When choosing "Thread status block" as the location, there is a third party cookie button you must choose to see the embed (youtube), but, that does not happen with the two other location settings.
 
Last edited:
"Value Match" means it should not post unless it is a URL correct? And they should receive a prompt telling them so, correct? I've been waiting to use this field until this can be addressed, so just making sure. Thanks
 
So, if I understand correctly, you'd want to use a single-line text box for this. I don't think that the matching format rule would apply to a Rich Text box. In testing, I get the expected result using the single-line text box whereas the Rich Text box doesn't use the matching rules, from what I can tell. I'm not sure that I would expect it to... possibly, this option section needs better comments added to explain when the matching rules apply and when they don't.

Tested with xf 2.3.6
 
This would be for an embedded video and currently it's not working as intended as it states that URL can be a value match for a rich text box. Embedding does work of course, just not the URL validation, which causes issues of members adding text or posting text only.
 
Oh, I see what you are saying. You're trying to embed something extra on top of the post content through the custom field (of rich text).
No, the single-line text box doesn't embed the posted URL. :(

What's the difference in embedding in the normal thread/post view? vs the rich text box you are trying to create?
 
Back
Top Bottom