Jump to content
Sign in to follow this  
macaroni

Outer [FM-field:] within a [FMP-InlineAction]

Recommended Posts

I'm trying to figure out how to use a field value to be used in the [FMP-Record] of an [FMP-InlineAction]

Below is what my code looks like: (well similar to it) Somehow I need the value of the field "coreKey" which is a field in the outer [FMP-Record] to be used in the HTML code generated by the [FMP-InlineAction]. I can't use [FMP-field: coreKey] since this is not a field in the database in the InlineAction.

Is there a way to pass the value inside the InlineAction?

I realize that looking at my code it may seem strange and illogical but I I do have my reasons... smile.gif

Thanks.

[FMP-Record]

html code here

[FMP-InlineAction: -db=Selection_, -lay=TableListings, group_id={FMP-field: pGroupCode}, -find]

[FMP-Record]

<input type="radio" name="need field value of [FMP-field:coreKey] from outer [FMP-Record]" >[FMP-field: groupText]

[/FMP-Record]

[/FMP-InlineAction]

more html code here

[/FMP-Record]

Share this post


Link to post
Share on other sites

1.Somehow I need the value of the field "coreKey" which is a field .....

2.I can't use [FMP-field: coreKey] since this is not a field in the database ....

1<----lost u---->2 = confused.gif

well....where is this 'field' then?

Share this post


Link to post
Share on other sites

I think you can use a Token to pass it along.

For example:

[FMP-Record]

html code here

[FMP-InlineAction: -db=Selection_, -lay=TableListings, group_id={FMP-field: pGroupCode}, -token={FMP-field: coreKey}, -find]

[FMP-Record]

<input type="radio" name="need field value of [FMP-CurrentToken] from outer" >[FMP-groupText]

[FMP-Record]

[/FMP-InlineAction]

more html code here

[/FMP-Record]

Give it a go smile.gif

All the best.

Garry

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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