Gravity Form query string appends '|:||:||:||:|2372' to the end of the data - wordpress

Right now I'm trying to create a custom confirmation page to be displayed to the user after they finish filling out one of my forms. This custom confirmation page will use some of the data that they entered into the form. Right now I only have 3 fields: name, phone number, and a logo image.
So I went into the Settings->Confirmations section of my form and set Confirmation Type to Page, chose the page, and checked off 'Pass Field Data Via Query String'. Then I entered in the string 'gym_name={Gym/Program Name:2}&gym_phone={Gym/Program website and/or phone number:3}&logo={Logo:4}'. The logo parameter is passed as the image src url.
I ran through a quick test of my form and after filling it out, all of the data was successfully sent to the confirmation page, with one problem. For some reason, Gravity Form appends '|:||:||:||:|2372' (it's not always 2372, it's different every time) to the end of the logo section of the url. This happens no matter where in the query string I put logo, and it does not get appended if I don't include the logo.
Does anyone know what the cause of this is, and how to stop it? Thank you in advance.

I'm assuming the Logo field is a Post Image field. If so, you'll need to use the :url modifier to retrieve only the URL.
&logo={Logo:4:url}
More details here: https://docs.gravityforms.com/post-image-merge-tags/

Related

How to add pre-made text to a form with a button click from another page? Wordpress Elementor

I have a home accomodation website and it has a page with all the rooms and another one with contact info and email form. The page with rooms has a "Book" button under every room. My idea was that when the "Book" button is pushed than the wepage automatically goes to the Contact page and room info is submitted to the email form. For example when i press the Book button under 3-people bedroom than the text "The client likes to book 3-people bedroom" is added to the email form. I am using Wordpress and Elementor builder for my page and Formidable for form.
I think you could even do this simpler then the suggestion of Umair by indeed adding a parameter to the url. But then istead of using the echo, you can easily retrieve the values by adding the following code as default value in the form [get param=parameter]
So in your example you would create three buttons with following url
https://example.org/contact?room=room1
https://example.org/contact?room=room2
https://example.org/contact?room=room3
On your contact form choose the field in which you want to show the text and add as default value
[get param=room].
Obviously you can change the text after the parameter 'room=' in whatever you want.
Hi Yes you need to add a get request url (https://testdomain.com/formpage/?formtext=formtitle) of this button so when the user click on the button it will redirect with the get request url like this https://testdomain.com/formpage/?formtext=formtitle
then you can add this variable echo where ever you want to display this text also in the fomidable form also have this variable option to place in form.
so your form will be display with the selected text by default.
if( $_GET["formtext"]){
echo $_GET["formtext"];
}

Stop AppMaker deleting email address onSend

Im just learning AppMaker and I have followed along the tutorial on sending email https://developers.google.com/appmaker/tutorials/call-scripts/
It works as expected so I decided to bring it to another level by integrating it into my sign up form.
-- ISSUE OUTLINE --
A user enters their name and email in a standard signup form.
This is saved as expected this data is presented on the follow up page I created (see screenshot below)
When the admin clicks on the blue email button it opens up the email box (see attached image) and the users email is pulled into the To: box as expected (I have pulled the email by binding it to the text field).
The admin then sends the email which is sent as expected but then the form clears the To: field deleting it from the users entry.
-- QUESTION --
Can anyone advise on a solution it would be greatly appreciated :-)
Screenshot:
In the tutorial you mentioned, there is 'clearEmailForm' function that is called in case of successful sending email. I think you can delete code, that clears 'to' field:
/**
* Clears the entire email form
*/
function clearEmailForm(){
var formWidgets = app.pages.Email.descendants;
...
formWidgets.To.value = ""; // Delete this line
...
}

How to Get GA to do Site Search with Tumblr

In Tumblr, searches are set up so that the query is a method/parameter of the search controller. Basically it looks like this: /search/:query.
I've been playing around from the client side trying to edit it so that it posts in this format:
/search/example?q=example
I'm doing this because GA looks for a parameter in searches. My problem is is that from the JavaScript to the form methods and actions, I cannot get the thing to spit out a query parameter at the end.
Is there anyway to tell Google to look for /search/:query instead of looking for a parameter in the URI?
Yes, you can do this by creating an advanced filter.
Go to your account Admin and then either click on the Account > All filters button on the left, or else the View > Filters button the right. Which one you use depends on whether you want this to be applied to all properties/views of the account, or only to an individual view.
Then, click the + New Filter button.
Enter in a name for your Filter Name such as "search string"
For filter type, select Custom filter radio button.
Then select the Advanced radio button.
Then from the Field A->Extract A dropdown, select Request URI. In the input field to the right of this, enter in ^\/search\/(.*)
Then from the Output To->Construtor dropdown, select Search Term. In the input field to the right of this, enter in $A1
Then save the filter and you should be good to go.

OnClick on ticketid need to open a details of ticket using birt report

I had a requirement to create a report based on individual user whom having SR waiting for approval, On click on Ticket id the URL's should redirect to SR detailed page where he can check request approve or disapprove.
using hyper link in birt properties unable to pass the ticketid by using below url's
http://google.com/maximo/ui/maximo.jsp?event=loadapp&value=asset&additionaleventvalue=Ticketid
Could you anybody help in this regards.
If the cell you made clickable contains the ticketId, go to Properties -> Hyperlink -> Edit...
Select hyperlink type URI, and click the dropdown to the right of 'Location' to go to the Javascript window.
If you're going to use it more than once, I would make the static part of your hyperlink a variable. Then add the ticketId by clicking "column bindings" in the left-lower column in the JavaScript window and selecting the appropriate cells in the middle and right columns. You'd get something like
vars["staticPartOfHyperlink"] + row[TICKETID]
If you'd rather not use a variable, you can hard-code the static part (don't do this, it's ugly and asking for trouble):
"http://google.com/maximo/ui/maximo.jsp?event=loadapp&value=asset&additionaleventvalue=" + row[TICKETID]

How to create a read more link in Drupal views?

I am facing a problem in drupal views, i want to show the node body 400 character and add a read more link on after trimming. So I have trimmed the node body 400 character and put the "More link: Yes" on views. I can see the ellipsis(... after words) but not showing the link. What is the procedure to add a read more link? I am using drupal 6.22 version
Thanks in advance
A More link set to yes will send a user to a page view of that view. My typical approach to the more link is to add a field to the view for path. Then I set the path to be rewritten as More ยป.
Having the path field a the end of the view (Or at least after your body field) will give you the results you're looking for.
This is how I had done it.
In the edit of my view, I added a field node:link.
Then I removed the Label and left it empty and added "Read more" in Text to display
I checked the checkbox Trim this field to a maximum length, entered my maximum length in the textfield and checked the Add an ellipsis and Trim only on a word boundary options.
Click on Update button and save the changes. You are done!

Resources