Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9185321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:14:59+00:00 2026-06-17T19:14:59+00:00

Within the BPM application ProcessMaker, I am trying to copy rows out of one

  • 0

Within the BPM application ProcessMaker, I am trying to copy rows out of one grid within a dynaform to a subsequent grid within a second dynaform. I only want to copy over the rows from the first grid where the checkboxes are checked on. The user does not need to see the unchecked rows.

I tried to have a trigger run BEFORE the subsequent grid and loop through the first grid and check where rows have checkboxes turned On but it doesn’t seem to copy anything.
Below is the code for the trigger. What am I doing wrong?

 @=new_grid = array();
 $tot = count(@=original_grid);
   for ($i = 1; $i <= $tot; $i++) {
    if ((@=original_grid[$i]['my_checkbox']) == 'On') {
    @=new_grid[$i] = array(
  'field1'    = @=original_grid[$i]['field1'],
  'field2'    = @=original_grid[$i]['field2'],
  'field3' = @=original_grid[$i]['field3'],
  'field4' = @=original_grid[$i]['field4'],
  'field5' = @=original_grid[$i]['field5'],
  'field6' = @=original_grid[$i]['field6']
  );
}
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T19:15:00+00:00Added an answer on June 17, 2026 at 7:15 pm

    this one took a while to figure out. turns out, i had my trigger placed in the wrong location. I needed to place the trigger AFTER derivation/routing. And here is the revised code i ended up using:

    $newGrid = max(array_keys(@=newGrid));
    $i = 0;
    foreach(@=newGrid as $r){
      if($r['my_checkbox'] == "On")
      {
         $i = $i + 1;
         @=newGrid[$newGrid + $i] = $r; 
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This pertains within a BPM application called ProcessMaker but the logic and syntax should
I am evaluating BPM offerings to be used within our application. I wanted to
Within my web application I want to access my database in two different ways.
Within a BPM web application, I have a field for an invoice # on
Within Symphony CMS, I want to be able to have an XML document which
Within an asp.net MVC app, I'm trying to find rooms which have a guest/client,
Within a for loop, I'm using the following code to convert from one date
Within this program I am creating an class instance. I am trying to make
Within an application, I've got Secret Keys uses to calculate a hash for an
Within iOS framework, how can one check if the Wifi radio is enabled by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.