Forums

Request Form

U Can Drive 14 Dec, 2015
I have a form with the following fields:

Name
Address
Phone

Each client fills in these details under their own profile with a DB Save function to the form "Details".

---

I then have a form with just one field:

Request

I enter the clients Name from my profile with a DB Save function to form "CRequest".

---

A new form uses DB Read to read the "CRequest" form and get the Request field using the following code:
<?php
$user = JFactory::getUser();
return array("user_id" => $user->get("id"));
?>

I then want to use DB Read to read the "Details" form and load the requested clients details. I'm trying to use:
<?php
$user = JFactory::getUser();
return array("Request" => $user->get("Name"));
?>

This is not working😟

---

The new form has all the fields from both previous forms.
Do I need to change the Conditions code more than I have?
Do I need to use the DB Read - Relations form?
Am I going about this the wrong way?

Thank you
U Can Drive 17 Dec, 2015
Answer
All good, I got this.
This topic is locked and no more replies can be posted.