[英]How to access Joomla Admin form field values?
I have been searching for accessing Joomla form field values from admin side and also have found some links but these links couldn't help me. 我一直在寻找从管理员端访问Joomla表单字段值的方法,也找到了一些链接,但这些链接对我没有帮助。
<field name="fields" type="hidden" default="ZAIN" />
Here I want to access its value and want to modify its value after accessing. 在这里,我要访问其值,并希望在访问后修改其值。
Here is full Form in xml format 这是xml格式的完整表格
<?xml version="1.0" encoding="utf-8"?>
<form name = 'learning_jform'>
<fieldset>
<field name="id" type="hidden" />
<field name="fields" type="hidden" default="ZAIN" />
<field
name="name"
type="text"
label="Enter Name:"
description="COM_FORMMANAGER_FORMMANAGER_NAME_DESC"
size="40"
class="inputbox"
default=""
/>
</fieldset>
<field name="types" type="list" default="" label="Select Field Types:" description="">
<option value="text">text</option>
<option value="email">email</option>
<option value="password">password</option>
<option value="textarea">textarea</option>
</field>
</form>
Where are you wanting to access the field? 您想在哪里访问该领域? In a module? 在模块中? In general, try: 通常,请尝试:
$myField = $params->get('fields', 'ZAIN');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.