I have a simple SQLform, where I’m trying to override the labels so they are more meaningful to the user :
form = SQLFORM(db.UserData, submit_button=’Report now !’, labels =
{‘title’:’Article Title’, ‘link’:’Link to article’,
‘htmlcontent’:’Content in HTML format’, ‘textcontent’:’Content in text
format’, ‘source’:’Your name’, ‘imageurl’:’Image to the article’,
‘briefdescription’:’Brief article excerpt’, ‘iscontentavailable’:
‘Ignore this’})
The labels for htmlContent, imageurl, briefdescription & textcontent are not being replaced.
Any idea what I should be checking or where I might be going wrong ?
You can get a easy name for your fields when defining your table, with labels:
and Using placeholder HTML5 property with a custom form, you can put a tip into the textboxes:
To add a label you can use jquery: