How to save the sfform widget textbox field with special format?

Posted on 2009-02-14
Last Modified: 2013-11-10
I am using sfguardplugin for authentication. And my user profile is stored in Account table.

I am using symfony 1.2 sfform. I need to save the username in sf_guard_user table with a special format: <user account ID><1st digit selected by user><2nd digit selected by user>.

For eg, i logon as AAA, then i will need to be able to create new user with AAA01, for eg.

In the Account form, the username is rendered as a text box widget automatically, which we can enter any text for the username.

How can i save the username as <user account ID><1st digit selected by user><2nd digit selected by user>? The <user account ID> is defaulted by the system, non-editable.

Question by:littletortoise
    1 Comment

    Accepted Solution

    Hi Vee Mod
    I found the solution for this problem. May i know how can i close this question? Everytime i always tried to delete the qn which i don;t think is the right way.


    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Note: You must have administrative privileges in order to configure lead or case queues. ( is a cloud-based customer relationship management (CRM) system. It is widely used around the world by sales and ma…
    Messaging apps are amazing tools with the power to do a lot of good, but the truth is the process of collaborating with coworkers requires relationships established through meaningful communication - the kind of communication that only happens face-…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now