Nirantar, I think you could do this in your class (or even in your function if 
you use that instead):
  - Override (or use) the get() method
  - Add a conditional such as this in that get() method:
        if request.GET.get(‘wordcloud’):
                <do wordcloud things>
        elif request.GET.get(‘bar’):
                <do bar things>
        …

Good luck!
Jim Illback


> On May 9, 2020, at 6:15 AM, Nirantar Kulkarni <[email protected]> wrote:
> 
> html template
> <form method="post" enctype="multipart/form-data" id="sub_form" 
> name="sub_form">
>         {% csrf_token %}
>           <textarea name="name">{{name}}</textarea>
>           <button type="submit" class = "b1" name = 
> "wordcloud">WordCloud</button>
>           <button type="submit" class = "b2" name = 
> "bar">Text_Analysis</button>
>           <button type="submit" class = "b3" name = "sa">Sentiment 
> Analysis</button>
>  </form>
> 
> I have multiple submit buttons for same form and each button refreshes the 
> page 
> I don't want it to refresh as it removes all changes made by one button to 
> perform changes made by another please help me
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/14a8c9f5-c949-4caa-a3dd-87af0d4d39c4%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/django-users/14a8c9f5-c949-4caa-a3dd-87af0d4d39c4%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CY4PR04MB11914DFB0F50E1AEB0E25B0A9DA30%40CY4PR04MB1191.namprd04.prod.outlook.com.

Reply via email to