Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9189581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:16:07+00:00 2026-06-17T20:16:07+00:00

I have a simple SQLform, where I’m trying to override the labels so they

  • 0

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 ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:16:08+00:00Added an answer on June 17, 2026 at 8:16 pm

    You can get a easy name for your fields when defining your table, with labels:

    db.define_table('system',
                Field('version', label='System Version', length=4),
                Field('db', label='System Database', length=10),
                Field('modules', label='Modules loaded', length=50)
                )
    

    and Using placeholder HTML5 property with a custom form, you can put a tip into the textboxes:

    {{=form.custom.begin}}
    {{form.custom.widget.title['_placeholder']='Article Title'}}
    {{form.custom.widget.link['_placeholder']='Link to article'}}
    ....
    {{=form.custom.end}}
    

    To add a label you can use jquery:

    $('#title').val($('#title').val() + 'Article Title');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have simple registration form. Once all information entered, user click submit button and
I have simple php validation form that is halfway working. If you leave the
I have simple form. <form target=_blank action=somescript.php method=Post id=simpleForm> <input type=hidden name=url value=http://...> <input
I have simple mailer which sends user weekly digest and rake task which sends
I have simple php billing application where the admin can enter his expense report(with
This is probably a simple question, I have a form that you put in
I have simple web user control (the code I found somewhere in the web):
I want to make a simple FORM (not SQLFORM) in web2py with two fields
I have simple login form in my website. In given requirements stands, that password
I have simple report (not interactive). When I try to remove column from its

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.