[SalesForce] Visualforce Error (under ) must occur between tags

I am trying to build some help text into a page layout by using a visualforce page. It is very simple (as below). However, I am receiving the error: "(under ) must occur between tags". If I delete the pageblocksection and the inputfield tags. I no longer get the error.

enter image description here

Best Answer

Your apex:inputField needs to occur between apex:form tags.

The developer console is frankly, kind of terrible, and will hide the tag names when it shows you an error message. Click on the error, and it'll render the html tag names, like below:

<apex:input> (under <apex:pageBlock>) must occur between tags <apex:form>

Also, next time you post code here, post it as text, so other users can copy that text.

Related Topic