Jump to content
  • 0

Parameters through Query String getting cut off


lengleng

Question

I am passing Parameters through Query String, but it's getting cut off! I am passing multiple fields, maybe 8 of them, including a description. Is it because it's too long? What else can I use then? 

 

I'm using an HTML Block on Details of Reports DataPage and when I click on the link, I want to pass the parameters to a Submission Form.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 1

That's kind of a strange workflow, why receive an ID in a Submission Form? Is this just to connect the record to the main one?

If that's so, trigger should be the best way to do this. If you want it displayed, it gets more complicated. You will need Cascading Form Elements. However, there's no Cascading Text Area, so, we will need a JavaScript for this

Steps:
1. Just pass the ID of the Record on your Details Page. (<a href="https://c2aby549.caspio.com/dp/83ff8000b539c247760a46d6aa9b?Receive_ID=[@field:ID]" target="_blank">Pass Parameter</a>)

2. On your Submission Form, receive the ID, and on the other fields, use Cascading TextFields

image.png.459774db30e4e3f6bab22c090ec1def4.png

image.png.dedb50bcfee41c858a297d9696e6359d.png

 

For your Text Description, since there is no Cascading Text Area, you will need a Virtual Field to get the Text(64000) Field

image.png.5dac831e077f27de398d50a773882134.png

You can do this on the Description field itself, however, if you want to display it on a Text Area, you will have to use a JavaScript.

On your footer, paste this code

<script>

document.querySelector("input[id^='cbParamVirtual1']").addEventListener("change", function(e){

document.getElementById("InsertRecordDescription").value = document.querySelector("input[id^='cbParamVirtual1']").value;

});

</script>

image.png.55878e29d1538078447b68f9874dde35.png

 

Change the number on cbParamVirtual1 depending on your Virtual Field. If it's a Virtual2 change it to cbParamVirtual2.

Change InsertRecordDescription to your actual field name, for example if it's called 'Notes' it would be  InsertRecordNotes

Here's a Sample DataPage I made with this

https://c2aby549.caspio.com/dp/83ff8000ee1d2b9fd7e747528f32

 

Link to comment
Share on other sites

  • 0
21 hours ago, Heather said:

Hello @TellMeWhy, will this also work if my parameter has special characters included?

It should work as long as the special character is not included in the query string, since you're only passing an ID, it, most probably, does not have any special characters. This is a workaround, as this is technically not passing all those values, but getting it directly from the table while using the ID field as a reference

Link to comment
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
Answer this question...

×   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.

Loading...
×
×
  • Create New...