Flash messages are used to notify the user that something has occurred. For example, a record has been created or they attempted to access something they were not authorized to do.
Questions tagged [flash-message]
408 questions
1
vote
0 answers
Flask backend flash messages to display on react frontend
Hi i have a flask app with a react front end. Where the react htmls generated through npm build are rendered. I also want the react frontend to show these flash messages as per the conditions. But since the backend and frontend are not dynamically…

Ali Mehdi
- 11
- 1
1
vote
1 answer
Python Flask - Duplicate Flash Messages
I'm having a problem with get_flashed_messages() returning two flash messages.
I have an html form that updates the row values of a table when submitted. Here is the flash message I have set for it:
@main.route("/update", methods=['GET',…

Ez-Pz
- 19
- 6
1
vote
0 answers
Using transaction api with no payement
I want to make a taxi reservation app using Google Assistant with no payment.
I used Transaction API with no payment intent but always my project is not approved.
app.intent("Default Welcome Intent", (conv) => {
conv.ask(new…

aaaaaa
- 9
- 2
1
vote
1 answer
Why do we re-render pages for error messages (express, nodejs)
I read somewhere that it's conventional to re-render a page to show error messages and re-direct to show success messages. I'm using this principle in some of my code in express js and it's leading to a few headaches.
For example, imagine a user…

bugsyb
- 5,662
- 7
- 31
- 47
1
vote
2 answers
How can I send a new prop to a component after time using the setTimeout() function?
I have a component called flash that is intended to be in the DOM only for 5 seconds (it's a message informing the user that he has sent the post successfully) and I want it to start fading away after 2 seconds, so that after 5 seconds when it's…

ms3300
- 216
- 6
- 13
1
vote
1 answer
Flask flash messaging is partially working
I have implemented a simple Flask application with login and register routes and I want to flash messages when username passwords are not matched. This is a part of my index and login routes,
@app.route('/')
@login_required
def index():
return…

Devnith Wijesinghe
- 11
- 1
1
vote
1 answer
How do you get React Native Flash message to show
Hi I'm new to react native and am currently trying to add a flash message to the top of my mobile application upon the press of a button. I've read the https://www.npmjs.com/package/react-native-flash-message tutorial and watched a couple youtube…

Laura Martin
- 11
- 1
- 3
1
vote
1 answer
Flash message is displayed only once (Rails 6)
Im trying to display a flash message in my ajax rendering when a review is created. This works perfectly but to work only once after I reload the page and make my AJAX call/render. If i try to submit another review without reloading the page it…

Alex
- 39
- 1
- 6
1
vote
1 answer
How to use access messages from your passportjs strategy in React
If you have a react application and don't wanna use connect-flash to access the messages generated by the local strategy you can use the following:
My passport local strategy, I am using a sqlite db:
passport.use(
new LocalStrategy({…

SirNoob
- 569
- 1
- 4
- 18
1
vote
0 answers
How to display flash messages on the same page without render or erasing the values in textbooks in express js
I'm working on a registrations page in express.js (using mongodb on serverside) and working on the validations part. My user.js looks something like this -
router.post('/register', [
check('firstname', 'Please enter your first…

Mahesh m
- 39
- 1
- 8
1
vote
1 answer
How can I get lists from DB flask
Is there a way to get a list from my DB?
I have this in my code:
graph_avg_session_duration = AnalyticsData.query.filter_by(name='graph_sessions').first()
item = graph_avg_session_duration.value
print(item)
The value in the DB is: [0, 0, 50,…

DeadSec
- 808
- 1
- 12
- 38
1
vote
3 answers
How do I add an event listener to a React component?
I'm trying to build a React web app (v 16.13.0). I want a flash message component, to display status after a form is submitted. If there is already something standard, that would be preferable, but since I can't find anything, I'm trying to roll…

Dave
- 15,639
- 133
- 442
- 830
1
vote
1 answer
how to flash messages emit by flask_socketio?
I can not use flask flash messages sent with emit and "captured" with @socketio.on, but it works on the html page. How to fix flash from flask_socketio ?
When i look in terminal, it works.
it's at the jonction socket / flash that the problem is…

laticoda
- 100
- 14
1
vote
1 answer
Laravel: difference between session()->flash() and session()->now()
I tried to show a flash message when a wrong parameter's given.
I tried doing this:
with session()->flash('error', 'error message.');
and returning the view, but when I put a right parameter in the url I had to load two times in order to let the…

ofmiceandmoon
- 548
- 2
- 9
- 30
1
vote
1 answer
How to set different flash message for same update operation in CodeIgniter?
I am updating a field in my db table which is either empty or already have some text. If it is empty after update flash message should be like 'Your intro added' else like 'Your intro updated'.
Sample Table
This is my controller
function…

Erin Smith
- 11
- 2