I am creating a newform.aspx page for cutsom SPList in SPO site.
I want to add an image with dynamic text thats embedded within anchor tag, <tr>
or <td>
.
This image with the dynamic text must be placed immediately above first field of the form.
Assume , I have some fields in the way, employeename, number, address, etc.
So, just above employeename field, I want to add a <tr><td> <a href ==>
with < img src=../../someimage.jpg >' + mydynamictext+ ' </td></tr>
.
How can I implement this?
I would like to add an attachment button to be able to upload files and images. How this can be done?
This is what I'm adding to new custom form:
var text='<tr><td class="ms-formlabel" noWrap="nowrap"
vAlign="middle" colspan="2">
<img
src="/mysitecollec1/soemmimage.png">
<a id="loadForm" style="cursor:hand"><u><b>'+ dynamicText+'</b></u>
</a> </br>
<span
style="font-weight:normal;"> default texthere </span></td></tr><tr>
<td> </td></tr>';
$("input[title='employeen name Required Field']").after(text);
But its not working!