shiny
(Peter Snell)
October 15, 2020, 3:31pm
1
I have a form on a collection page that is sending through via a zap to a spreadsheet for data collection. But because it is on a collection page I would like the form to detail which item in the collection the form was submitted from.
Any one got any ideas how I can do this?
Here is my public share link: LINK
(how to access public share link )
ChrisDrit
(Chris Drit)
October 15, 2020, 5:04pm
2
You can add an Embed element within your form on the Collection Template Page:
<script>
<input type="hidden" name="_INSERT_FIELD_NAME_" value="_INSERT_FIELD_VALUE_">
</script>
Replace _INSERT_FIELD_NAME_
with the field name in your Collection Item.
Replace _INSERT_FIELD_VALUE_
with the above field value by dynamically inserting from the “field” link within the Embed element.
shiny
(Peter Snell)
October 16, 2020, 6:01am
3
Thanks Chris!
I will give this a go now.
1 Like
shiny
(Peter Snell)
October 16, 2020, 6:11am
4
Thanks Chris, worked like a charm. I completely missed that “add field” button in the top right of custom code too. That thing is a game changer!
Have a lovely day!
1 Like