I've been trying a messenger chatbot from a Taiwanese company, but I found it not so funny to play: Is it possible to design a button with a text on it which will trigger an automatic message with a different text from the user?
F.e. something like:
Button text: OK >>>> Text: I'm not sure I can help, but I'll do my best.
When creating a button within messenger you add a postback value which is going to be post to your webhook when someone clicks on the button. You can then test the specific value to act upon it. IF source === "MY_SPECIFIC_VALUE_BEHIND_BUTTON" THEN ...
Related
I am trying to implement a popup dialog for my Ionic 3 up that will be used to cofirm deletion of an object from the collection.
The perfect flow I am imagining is this :
An alert appears with a question "Delete item? Yes No" and after clicking yes, a spinner appears inside the alert to indicate that a request is sent to the server and pending response. After the response has been received I want the alert to smoothly change into a confirmation alert, something like this:
Unfortunately I found out that it is impossible to provide custom templates for alert components in ionic. From what I've read it seems like the only option is to create a modal with a custom template instead. The problem is, however, that the model opens full-screen and I want a nice little alert with the backdrop in the background.
Can you please give me some advice on how to achieve this?
Question 2: I really like the design of the confirmation alert that I have posted above :) Any advice on how to make it?
Cheers guys, as always - thank you!
Is there a way to show some visual indication that the inline button has been pressed in telegram bot.
I have a bit which send inline keyboard, and when I press each buttons it works perfectly fine, but there is a slight delay in getting response from the server. As there is no visual indication to show if a button has been pressed, it is confusing for uses to know if the button was pressed and end up pressing the same button several times.
there are different types of inline buttons in Telegram:
Opens URL (with url).
Forward a message (with switch_inline_query).
Insert query at the chat (with switch_inline_query_current_chat).
Button with action (with callback_data).
I suppose you are refering to the last type of button, in that case, if a user press a button you will get the callback_data via CallbackQuery, and that lets you modify the original message with editMessageText to add something like:
Button TEST pressed.
As an alternative way, after you got the callback response at your server, you can use Emoji for showing feedback to your users. Just edit the inline message and edit some relative emoji to the button text.
I'm new to Zoho CRM. I need to show a warning on button press but only once for the first button press. This sounds really simple but yet I can't figure out how to do it in Zoho Creator as all variables seems to have local scope so I can't determine if the button was pressed before. I've been searching if there are global variables in Zoho but found only workarounds with creating another applications for that case.
I've also tried creating a field on my form and hiding it to pass some value there if the button was pressed so next time I can check this field but is not working for some reason.
In validation part I'm assigning new value to a field
warning_shown=true;
But on a form this checkbox remains unchecked and next time I press the button warning_shown equals false.
Any suggestions will be appreciated!
In case someone interested, here is a reply I got on another forum that might help. Here is a link for that topic
It's not going to be possible to use the validation code section to display the message.
I was thinking you could have your hidden decision box field, and in the "On User Input" of the last field in the form you could use something like:
//remember to change field names accordingly
if !input.warning_shown
{
alert "Message here!";
input.warning_shown = true;
}
This would show the message after the last field is filled but before the button is clicked.
Trying to figure out the best way to track on click events using google tag manager on an element that doesn't seem to change. this site: http://www.sleepcocktails.com/pages/faq has FAQ's where the use can click on a question which then expeands to show the answer. The goal is to understand which are the most clicked on questions so we can surface those earlier in the site.I think the best way to do this would be through click events, but as nothing really changes on the page i cant figure out what to target with google tag manager.
Any help would be appreciated thanks!
You could create the following event tag
with the trigger to fire when the Click Class variable equals "text", like this:
Use the Click Listener and configure your tag to only fire when someone clicks on a question e.g Click Classes equals text
and the set-up for your Event could be something like this:
Category: FAQ
Action: clicks
Label: {{element text}}
i have a little problem. I'm using Oracle Applicarion Express and i'm trying to use some page items in a Link created for a button. I created the Button as region button, and selected in the region" Action when button clicked" "Redirect to URL". In this URL i want to use two pageitems. I tried already to use them mit ":PAGE_ITEM" or "&PAGE_ITEM." but non way works. Can someone help me please?
What does the resulting hyperlink look like? The chance is great that it looks like
f?p=<app_id>:10:<session id>::::P10_ITEM1,P10_ITEM2:,
This is because when using the substitution syntax like &PAGE_ITEM. will put the session state of the referenced item in the string. Since the button is rendered during the loading of the page it will use the session state of the item at that time.
When you then fill in a value for PAGE_ITEM, this will not change the session state of that item - and even if it did it would not matter since the button was already rendered.
If this is the case then you'd better have the button submit the page, and define an on submit before validations/computations branch to act on that button. In the branch you can then safely use the session state of the required items.