1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

Get rowid URL live?

Discussion in 'Community' started by uriel, Nov 23, 2018.

  1. uriel

    uriel New Member

    Level: Community
    I have a URL and I need to get her ID (rowid).
    in a module below.

    How to act?

    example

    index.php?option=com_fabrik&view=details&formid=1&rowid=1&Itemid=135

    Get ID (rowid) 1

    My module form.

    Field = rowid
    other field

    save
     
  2. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    Not quite sure what you are asking, but if I'm understanding correctly, in the form module's 'rowid' element, you could use an eval'ed default of ...

    Code (Text):

    return $this->app->input->get('rowid', '');
     
    -- hugh
     
  3. uriel

    uriel New Member

    Level: Community
    Hi!

    I want to by Rowid's URL in the field of my module
    Sorry for my English. I use gtranstale
    Example

    My URL
    index.php?option=com_fabrik&view=details&formid=1&rowid=1&Itemid=135
    {content data}

    ---------------------
    My fieds in module (other form) which should be the RowId of the URL.

    Field ID > rowid=1 < (since it belongs to URL)
    field 2
    save

    Hugs
     
  4. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    Then yes, the eval'ed element default should do that. At least on the initial page load.

    -- hugh
     
  5. juandress

    juandress New Member

    Level: Community
    Hello, I want to create a qr code with the url of the form but I can not find the way to get the current id of the record.

    I use a field in eval mode and only read to get the url.

    PHP:
    $rowid = ??? ;
    $url  = '{$_SERVER->HTTP_REFERER}' . '/form/28/' . $rowid;
    return $url;


    You would have to first use a calc field and then concatenate it to the field with QR code.


    $this->app->input->get('rowid', ''); not work for my

    thank you

    Juan
     

Share This Page