×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
Dynamically show user information in XML form
Walt Sorensen
Bronz Üye
Posts: 54
9 yıl 8 ay önce - 9 yıl 8 ay önce #774
Yazan: Walt Sorensen
Dynamically show user information in XML form, Walt Sorensen tarafından oluşturuldu
Can you display user information in an Joomla xml form after selecting the user via the field type type="user" ?
I've looked at a lot of tutorials but nothing seems explain how to select a user then display certain information via an xml form (there seems to be plenty on doing this in a php form, just nothing about doing in XML).
Basic concept I'm working on is to select the user and show the user name and email in the form along with some additional fields:
What modifications are needed in this XML to have the form dynamically show the user's information in the form when the user is selected?
Thanks for your help and guidance in this topic
I've looked at a lot of tutorials but nothing seems explain how to select a user then display certain information via an xml form (there seems to be plenty on doing this in a php form, just nothing about doing in XML).
Basic concept I'm working on is to select the user and show the user name and email in the form along with some additional fields:
<?xml version="1.0" encoding="utf-8"?>
<form>
<fieldset>
<field name="user_id" type="user"
label="COM_SOMECOMPONENT_FORM_LBL_USER_USER_ID"
description="COM_SOMECOMPONENT_FORM_DESC_USER_USER_ID"
required="true" />
<field name="username" type="text"
label="COM_SOMECOMPONENT_FORM_LBL_USER_USER_NAME"
description="COM_MYCOMPONENT_FORM_DESC_USER_USER_NAME"
/>
<field name="user_email" type="text"
label="COM_SOMECOMPONENT_FORM_LBL_USER_USER_EMAIL"
description="COM_SOMECOMPONENT_FORM_DESC_USER_USER_EMAIL"
/>
</fieldset>
</form>
Thanks for your help and guidance in this topic
Son Düzenleme: 9 yıl 8 ay önce Düzenleyen:Walt Sorensen Neden: fix the formatting
Lütfen sohbete katılmak için Giriş ya da Hesap açın.
Sayfa oluşturma süresi: 0.049 saniye