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

All

I am looking for an example of a editable portal in a custom page. I have successfully created a simple non-editable portal on a record detail page but I have found that making this editable is quite tricky.

Any suggestions or example code would be greatly appreciated

Thanks

Chris

This is the CDML you would use to have editable portals on a page:

[FMP-Portal:myportal]

<input type="text" name="myportal::myrelfield.[FMP-CurrentPortalRowNumber]" value="[FMP-Field:myportal::myrelfield]"><br>

[/FMP-Portal]


Hope this helps.

Garry

  • Author

Gary,

Thanks for you help. This all works successfully :-)

But I now have another question. How do I create new records through this portal? I know this is achieved in FM if you direct the user to the last portal row. Can this be done using CDML?

Any help would be greatly appreciated

Chris

You can create a new PortalRow by assiging values to Portal Fields which have a suffix of ".0" like this:

<input type="text" name="myportal::myfield.0" value="Enter Data Here">

Hope this helps.

Garry

  • Author

Oh - I see. And I guess you delete records in a similar way?

Thanks

Chris

I haven't tried that method for deleting rows. I have used some Javascript and a calculated field which gives me the RecordID of the related record.

All the best.

Garry

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.