Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • Newbies

I am having an issue modifying a repeatng field using FX, how would I set up the AddDBParam calls, do I

1.) send 1 AddDBParam with field name and an array

2.) multiple AddDBParam with same field name and a single value for each repition

3.) multiple AddDBParam with field name+[1...n] and a single value for each repition

not sure if this is clear, but hopefully someone knows what I need...

TIA

  • Author
  • Newbies

I figured it out, have to use addparam(fieldName.index, value)

  • 3 months later...

Thank you for posting this. I was fighting with that all day!

~Addam~

  • 4 weeks later...

HI,

I am having the same problem. How do you retrieve repeating values from the web page?

I use the following code for 2 repaeting fields (7 repetitions):

<tr>[FMP-Repeating: test1]<td><input type="text" value="[FMP-RepeatingItem]" name="field1"></td>[/FMP-Repeating]</tr>

<tr>[FMP-Repeating: test2]<td><input type="text" value="[FMP-RepeatingItem]" name="field2"></td>[/FMP-Repeating]</tr>

I can see my repeating values on the page and enter data into all the boxes, but how do I retrieve them in php page (I use combined CDML/PHP)?

I tried AddParam('test1.1', 'field1')

AddParam('test1.2', 'field1')

.....

does not work

Please HELP!

Thank you very much!

Jul

  • 2 weeks later...

Here is the deal...

Repeating fields are translated (in so many words) to actuall arrays themselves.

So if you have 1 repeating field with 3 entries, you would get their information by:

$instance['repeatingfield'][0];

$instance['repeatingfield'][1];

$instance['repeatingfield'][2];

and so on...

If you wanted to display a list you would use something like this:

<?php

for ($i=0; $i < count($instance['repeatingfield']) ; $i++){

echo $instance['repeatingfield'][$i];

}

?>

This would return the list of values inside the repeating field.

Hope this helps!!

~Addam~

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.