Jump to content
Server Maintenance This Week. ×

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


This topic is 7617 days old. Please don't post here. Open a new topic instead.

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]

Link to comment
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?

Link to comment
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

Link to comment
Share on other sites

This topic is 7617 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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