Publish html and Label confusion.

file .wbs
https://app.box.com/s/el9equjqd6kkhyxneq3nmia48pcxl256
Pablo wrote: Sun Apr 06, 2025 5:01 pm The problem is that you are using the form as embedded page.
In that case 'for' will not work.
None of these problems about v19.4.4!!Pablo wrote: Sun Apr 06, 2025 5:01 pm The problem is that you are using the form as embedded page.
In that case 'for' will not work.
The "demo" is file ".wbs"? or website?Pablo wrote: Mon Apr 07, 2025 5:03 pm There have been no changes to this functionality, so you must be doing something different.
If you need further help then please provide a demo.
I used an embedded approach to design the website, and if there is only one page design, it is impossible to test the problem.BaconFries wrote: Tue Apr 08, 2025 3:33 am Before you share the project (.wbs) please carefully read all of the information from the url below.
Example of what to share.
1 page only with the issue(s) remove any manually added code/script (php) you use, remove any extensions used.
viewtopic.php?t=82134
When I wrote only one page it was referring to the page that is using the embed page and not your full site or a link/url. Having to go through page after page is time consuming so that is why it is asked to provide only what is required.I used an embedded approach to design the website, and if there is only one page design, it is impossible to test the problem.
I change 'Label' to 'Text', It's all right.Pablo wrote: Wed Apr 09, 2025 5:36 am I'm sorry there is no easy way to implement this functionality. It is related to the way label is nested.
Code: Select all
<label for="username">Username</label>
<input type="text" id="username">
Code: Select all
<input type="text" aria-label="Username">
Code: Select all
<span>Username</span>
<input type="text" aria-label="Username">
A label is different type of object.I change 'Label' to 'Text', It's all right. Why ?
But it has no effect.wwonderfull wrote: Wed Apr 09, 2025 9:40 am So final output could be like this:Code: Select all
<span>Username</span> <input type="text" aria-label="Username">
I'm also a programmer.Pablo wrote: Wed Apr 09, 2025 11:16 amA label is different type of object.I change 'Label' to 'Text', It's all right. Why ?
Basically the label needs to find the 'for' element on the page when the code is generated . Normally if can simply scan the page, but if the form is nested in a embedded page then the code does not exist until it is merged at the final stage of the publishing task.
You need to add some style to that <span> or else the span does not have any color font size or even font family. That Example I gave is just for demonstration.ssbbstw wrote: Wed Apr 09, 2025 1:52 pmBut it has no effect.wwonderfull wrote: Wed Apr 09, 2025 9:40 am So final output could be like this:Code: Select all
<span>Username</span> <input type="text" aria-label="Username">
Can you give me a .wbs test it?
Thank you!
![]()