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.

Get merge field value

Featured Replies

I have a merge field as a button.  It is a repeating field individually and the button name is the result.  It works fine.

 

But I need to find out which button is clicked and its repetition number tells me that.  I tried using Get(Repetition) and Get(CalcRepetition) and GetLayoutAttribute and a few other things even passing parameter of Get(ActiveFieldContent) but nothing so far works.  I suppose I could go back to the regular fields as the buttons but I did a lot of work already.  Also I would like to know for next time any way.  I see the field name and value quite clearly but how to get them?

 

Thank you for reading.

  • Author

I worked on this over four hours before posting and now i think I know how.

 

I can just put a 1 in the script parameter for the first repetition and so on.  But is that the best way?  I guess if it works it is good but that does not mean GOOD.

I can just put a 1 in the script parameter for the first repetition and so on.  But is that the best way?

 

Yes. When you turn a field (merged or not) into a button, you click the button, not the field. The field itself does not activate and there is no way to get anything from or about it.

  • Author

Sorry for late response it was unavoidable.  This makes sense, thank you very much again, Comment.  

Yes. When you turn a field (merged or not) into a button, you click the button, not the field. The field itself does not activate and there is no way to get anything from or about it.

 

But you could make the (non-merged) field repetitions enterable and use an OnObjectEnter trigger to get the repetition with Get ( ActiveRepetitionNumber ).

you could make the (non-merged) field repetitions enterable and use an OnObjectEnter trigger

 

Yes, you could. I don't like it much myself in terms of the visual feedback - but it is an option.

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.