Raised This Month: $32 Target: $400
 8% 

How to change the attributes in the beforeQuestionSave event?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sunil15
New Member
Join Date: Feb 2021
Old 02-17-2021 , 11:15   How to change the attributes in the beforeQuestionSave event?
Reply With Quote #1

I wrote a plugin where I added a drop down menu based on the value selected, I would like to change the values of other attributes not present in the Question object only in QuestionAttribute.

But I don't want to call befoeQuestionAttriibuteSave because if the value of the given attribute is empty then the event for that attribute doesn't exist.

I would like to change $ _POST values somehow (or otherwise change it?) Or raise a write event for the changed attribute. Unfortunately, I don't know how to do this.

192.168.0.1
192.168.o.1
192.168.1.128

Last edited by sunil15; 03-13-2021 at 00:05.
sunil15 is offline
Judge_Duck
Junior Member
Join Date: Jul 2020
Old 02-17-2021 , 11:59   Re: How to change the attributes in the beforeQuestionSave event?
Reply With Quote #2

Unfortunately, asking that question here and abusing the announce almost guarantees you wont get an answer.
__________________

https://www.endofthelinegaming.com/ -- Picking up where NoHeroes ended.
Judge_Duck is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 02-17-2021 , 19:17   Re: How to change the attributes in the beforeQuestionSave event?
Reply With Quote #3

Moved from the plugins submission forum to the scripting forum.

Please do be more careful of where you post threads.
headline is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode