automill
Member
Hi,
I am using dropdown element and correctly getting the dropdown list through EVAL method using query. I need to link the "aricle id" value in the query, for that I can use:
I am storing the "aricle id" in another field element via formOnload method for use in other elements also.
Now I want to access this field in dropdown element via placeholder as the form will be edited somewhere else and will lost the id value on load, like below:
but getting no value through placeholders.
Also tried many methods like:
but got nothing.
Any help will be appreciated
Thanks
I am using dropdown element and correctly getting the dropdown list through EVAL method using query. I need to link the "aricle id" value in the query, for that I can use:
Code:
$app = JFactory::getApplication();
$id = $app->input->getInt('id', 0);
I am storing the "aricle id" in another field element via formOnload method for use in other elements also.
Now I want to access this field in dropdown element via placeholder as the form will be edited somewhere else and will lost the id value on load, like below:
Code:
$id = '{xxxx_tablename_article_id}';
but getting no value through placeholders.
Also tried many methods like:
Code:
$formModel->data['xxxx_tablename_article_id'];
$this->data['xxxx_tablename_article_id'];
$formModel->fullFormData['xxxx_tablename_article_id'];
$data['xxxx_tablename_article_id'];
but got nothing.
Any help will be appreciated
Thanks