View Single Post
  #2  
Old 06-17-2015, 09:13 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 88,298
Kyttias is on a distinguished road
Default

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
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.
Reply With Quote