• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Repeating Group Date field being populated with value from parent group date field...

What happens when you add:
return '{yourtable___parent_group_date_element}';
to the repeat group calc element? And "Only calc on save" to "No"?
 
What happens when you add:
return '{yourtable___parent_group_date_element}';
to the repeat group calc element? And "Only calc on save" to "No"?
What I really need is to place a date in the repeatable field based on the parent date
I wanted to use the date in parent date and then calculate the date 5 days prior...
Could I use something like this in a calc element to populate the repeating date field but it could be changed by the user by the date selector or by entering date in manually.

$days_ago = date('m-d-y', strtotime('-5 days', strtotime('{yourtable___parent_group_date_element}')));
return '$days_ago';
 
Last edited:
In that case you should be able to replace your calc element with a date element and put the code in your last post into date element's "default" field and set "Eval" to "Yes".
 
Check what happens with:

$days_ago = date('Y-m-d H:i:s', strtotime('{yourtable___parent_group_date_element_raw}' . ' -5 days'));
return $days_ago;

Also note that quotation marks around variables can cause problems (return '$days_ago')
 
I don't have time to test now, but dump the variables and see if you get the correct dates like:

var_dump('{yourtable___parent_group_date_element_raw}');
exit;

and

var_dump($days_ago);
exit;
 
Last edited:
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top