- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2017 07:17 AM
Hey,
I want to insert an image into a form with an URL and not included Image field type.
How do I do that?
I used HTML box and marked is as read only, it works but it shows two buttons ( - and + ), remove and add lines to the script area.
I tried to get rid of this buttons using System UI -> Field Styles, but I am not able to stylize anything outside the context of the field box.
Example attached below.
Thanks for any help!
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2017 07:53 AM
Alright, I've dig a little bit deeper in this situation.
Basically what I did is access the plain HTML from a client script and removed the <div> element that held these two buttons.
I did it within onLoad client script.
JS code:
g_form.getFormElement("u_html").elements["x_58872_needit_needit.u_html"].parentElement.firstChild.innerHTML = "";
parentElement on the u_html element is the container for the context of HTML field. Therefore it holds both "+" and "-" buttons and the HTML view.
The firstElement is the <div> element containing these buttons, so if I replace them with an empty string, the buttons dissapear.
End result:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2017 07:53 AM
Alright, I've dig a little bit deeper in this situation.
Basically what I did is access the plain HTML from a client script and removed the <div> element that held these two buttons.
I did it within onLoad client script.
JS code:
g_form.getFormElement("u_html").elements["x_58872_needit_needit.u_html"].parentElement.firstChild.innerHTML = "";
parentElement on the u_html element is the container for the context of HTML field. Therefore it holds both "+" and "-" buttons and the HTML view.
The firstElement is the <div> element containing these buttons, so if I replace them with an empty string, the buttons dissapear.
End result: