Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4118 มุมมอง

I'm inheriting template from online events app. there's registration for events there and I've added some field that user fills with text. I need this text to be saved in database so i can display what user inputed in he's profile in online events attendees. Below is the template part where I added place to input text by user. I think getting data from website is done with controllers but I just don't know how.

<div class="input-group">
    <t t-foreach="event.question_id" t-as="question">
        <span class="input-group-addon"><t t-esc='question.title'/>
            <input type="text" class="form-control" t-attf-answers="#{counter}-answers" widget="text" t-att-placeholder="'Question #%s' %question.id"/>
        </span>
    </t>
</div>
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

If you want to save user input, you also need to add the necessary amendments in the backend. Please read the corresponding docs, which you can find here:https://www.odoo.com/documentation/9.0/

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Data from website with controller แก้ไขแล้ว
2
ก.ค. 24
4025
3
เม.ย. 24
4625
0
ก.ย. 21
1802
1
มี.ค. 15
4617
0
ธ.ค. 23
1251