Send entry IDs to Form

Status
Not open for further replies.

Parisi

Member
I am looking to build a list plugin where multiple rows can have data added or removed from one column. To fulfill this, the first step I am picturing is that the list plugin button "sends" the row IDs over to the form (I would imagine using GET or POST-like functionality).

What would be the best way to achieve this in Fabrik? I have attempted to follow some PHP code that seems similar to what I am trying to achieve on an old ticket, but I'm not quite grasping what needs to be modified to make my goal work.

The old ticket is here: http://fabrikar.com/forums/index.ph...m-that-will-be-used-on-form-submission.41151/

The code I was looking at is:
Code:
$ids         =     $app->input->get( 'ids', array(), 'array' );
$idstring     =     implode( ',', $ids );

$your_url     =     "j33/fabrik-user-reg/form/17/?lids=" . $idstring;
$your_msg     =     "ids are ". $idstring;

$app->redirect( JRoute::_($your_url), $your_msg );
 
Never mind, I have figured this out, I was just missing the first line:

Code:
$app = JFactory::getApplication();
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top