Skip to Content
Menu
This question has been flagged

Hello people,

so I've been wondering how to get value automatically on a field after the user login. Like for an example, when they access my helpdesk page, they didn't have to write their name and email on the existing field anymore because it's automatically filled whenever they login and want to submit a ticket.


Currently, my html code looks like this:

Field Name

<div class="col-md-4 text-md-right offset-lg-1 col-lg-10">

    <div style="text-align: left;">

        <label>

                <span style="color: rgb(112, 112, 112); font-weight: 700;" for="partner_id">Name</span>

                              <span style="color: rgb(206, 0, 0); font-weight: 700;">*</span>

                            </label>

                          </div>

                          <input type="text" class="form-control o_website_form_input" id="partner_id" name="partner_id" required="1"/>

                        </div>


Field Email

<div class="col-md-4 text-md-right offset-lg-1 col-lg-10">

                          <div style="text-align: left;">

                            <label>

                              <span style="color: rgb(112, 112, 112); font-weight: 700;" for="partner_email">Email</span>

                             <span style="color: rgb(206, 0, 0); font-weight: 700;">*</span>

                            </label>

                          </div>

                          <input type="text" class="form-control o_website_form_input" id="partner_email" name="partner_email" required="1"/>

                        </div>


What should I add or what should I remove?

 Thank you for your help :D


*notes:

I'm not really good with code so can I do it just by editing the XML (without using Python)?

Avatar
Discard
Related Posts Replies Views Activity
3
Nov 24
2799
2
Apr 23
6965
0
May 21
2640
3
Sep 20
3270
2
Apr 20
4832