Can I add placeholder text to an input field in a portal?

Posted by jsniemi79 on 16-Apr-2015 15:16

I am trying to create a portal page to blend into another website. I need to remove the labels on the input fields and use placeholder text instead.  Is this possible to do with the default inputs from Rollbase?  I've tried a couple different options using a script component and Jquery, but I can't get the value to display.

If I inspect the element, it looks like it is setting the property correctly.

Thank you in advance for your help.

Posted by jsniemi79 on 17-Apr-2015 13:02

This appears to be css related.  I adjusted the height and the placeholder text was visible.

All Replies

Posted by Mohammed Siraj on 17-Apr-2015 01:26

Setting the placeholder attribute should suffice.

Please confirm that your browser client supports HTML5 placeholder attribute.

For browser support of this attribute, see: www.w3schools.com/.../att_input_placeholder.asp

Posted by jsniemi79 on 17-Apr-2015 07:57

I'm using one of the latest versions of Chrome.  I can see the placeholder value working in the site that I am trying to replicate with my portal, so I know it isn't that.  Is there something in the css that I need to be looking at?

Posted by jsniemi79 on 17-Apr-2015 13:02

This appears to be css related.  I adjusted the height and the placeholder text was visible.

This thread is closed