Messing around with INPUT controls

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
User avatar
jPaul
 
 
Posts: 90
Joined: Thu Jun 10, 2021 11:00 am

Messing around with INPUT controls

Post by jPaul »

Hi everybody,
[ Using WYSIWYG v 21.0.4]
I have a simple Input Object for say ... a password field.
WYSIWYG will generate the HTML code:

Code: Select all

<div id="wb_PW1">
<input type="password" id="PW1" class="inputBox" name="PW1" value="" maxlength="25" tabindex="4" autocomplete="off" spellcheck="false" title="Enter your PassWord" placeholder="Enter your Password"></div>
Naturally, I can't leave things alone without sticking my fingers in the mix.
If I want to add <i class="fa fa-eye toggle" data-target="PW1"></i> to that input box, or an inline-style like style="position:relative;" to position the favicons inside the input box...

how do I go about doing that from within the Input Object properties?
Many Thanks,
-Paul-
If I wasn't so stupid, I wouldn't have to be so persistent.
User avatar
Pablo
 
Posts: 24597
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Messing around with INPUT controls

Post by Pablo »

WYSIWYG Web Builder is not a code editor, you cannot edit the HTML on that level.
The HTML is dynamically generated based on the properties and context of the object.
Even a single change in the properties may result in completely different HTML structure.
Also, whether or not the object is inside a grid or flexbox container will affect the code (floating vs absolute).
So, there is no way to provide a 'code insert' point for every possible combination.

But if you want to add an icon to an input field then you can use the input group instead.
https://www.wysiwygwebbuilder.com/inputgroup.html
Post Reply