Kyttias |
06-17-2015 09:13 PM |
I'll ask HoF directly about this, but the fastest solution I can think of is to find where the form is being built. You might find something like:
PHP Code:
$profileForm->add(new Button("Save Changes", "submit", "submit"));
Which is rendering something like this:
HTML Code:
<button id="submit" value="submit" class="btn" name="submit" type="submit">Save Changes
</button>
<br>
I would take it and change it from adding a new Button to adding a new Comment instead, and instead include the html I want rendered exactly (being sure to use single quotes ' inside of double quotes " otherwise things go haywire):
PHP Code:
$profileForm->add(new Comment("<button id='submit' value='submit' class='btn' name='submit' type='submit'>Save Changes</button>", FALSE));
Normally, Comments also have linebreaks after them, but setting a final parameter of FALSE negates this. I can't seem to find anything similar to negate the addition of a linebreak after other elements. =T
|