amiaz peisach Posted March 28, 2020 Posted March 28, 2020 hello. i wish to disable the "REQUIRED" text field in the difualt support ticket. so only the custum fields that i select eill be REQUIRED and not the text field in the bottom of the form. thank you.
bfarber Posted March 30, 2020 Posted March 30, 2020 The title of a request as well as the request body are required, and cannot be disabled without a customization.
amiaz peisach Posted March 31, 2020 Author Posted March 31, 2020 can you point me out to the location of the html/php location of the "REQUIRED" of the text location? thank you.
bfarber Posted March 31, 2020 Posted March 31, 2020 Unfortunately it's a generic language string, so changing the language string would adjust it everywhere. Similarly, no custom form template is used, so you'd have to edit core form templates to make any changes, which would apply everywhere.
amiaz peisach Posted March 31, 2020 Author Posted March 31, 2020 ok, and if i wish ti disable all "REQUIRED" at all places, can you point the location that i need to change? or, to edit format of the support ticket that it wont include thet part in the form. so if its not included, it wont be "REQUIRED". thank you.
bfarber Posted April 1, 2020 Posted April 1, 2020 Simply changing or removing the word "required" won't make it not required. You will need a customization to accomplish what you are after.
amiaz peisach Posted April 1, 2020 Author Posted April 1, 2020 i will be more spesific. i meant to remove the selected text location complitly, and not only the "required" on it. if i remove the intire writing on the new support ticket, when the user submit it, it wont check it becuse it dose not exsist. i have not located the file that edit the base form of the support ticket. if the support ticket will include only "subject" and all custum fields, without the difualt main text airea. and i will ad coustum field with text ariea, it wont be "required" thank you. the part i want to remove:
opentype Posted April 1, 2020 Posted April 1, 2020 31 minutes ago, amiaz peisach said: if i remove the intire writing on the new support ticket, when the user submit it, it wont check it becuse it dose not exsist. That is not how it works.
amiaz peisach Posted April 1, 2020 Author Posted April 1, 2020 can you please tell me how dos it work? for my understanding (my lvl of html\css\php is a but more then a beginner) if you have a form, and the form dos not have the field that in need to chack with the php, so it will skip it. the html pass the information to the php, but the html chacks if it have been field or not. but if i remove the intire section then it wont be checkt, and the form will be sent without cheking the information and will send it sucsesfuly. or, is it possible to add "defualt" information, so if the user will send the information without writing any thing, the form will send succsesfuly since it have the difualt values in the section. (like in the "yes or no" feature) thank you.
Morrigan Posted April 1, 2020 Posted April 1, 2020 @amiaz peisach Its required in order for other functions to work. An example would be like submitting a topic with only a title. The custom fields would be the title fields and the box is the actual topic information itself. So as stated above its really not possible. You may be able to request a customization from a dev: https://invisioncommunity.com/third-party/providers/ https://invisioncommunity.com/forums/forum/506-customization-requests/ They would have to code a plugin for you that would fill that in with default information and hide it.
amiaz peisach Posted April 1, 2020 Author Posted April 1, 2020 hi. i have figurd it out. the way to add autofill texterea in all ckeditor4 location is here: core->global->forms->editorRaw at this line of code: <textarea name="{$name}" data-role='contentEditor' class="ipsHide" tabindex='1'>{$value|doubleencode} add data here</textarea> thank you all for your help.
Morrigan Posted April 1, 2020 Posted April 1, 2020 This will change it for every editor on your site @amiaz peisach which will open you up for spam empty topics, empty messages. If you're okay with that, then you go for it.
amiaz peisach Posted April 1, 2020 Author Posted April 1, 2020 yes, my site have multi custum fields that are requard, the only location that it is in use is in the support system. and that is the only feald that the user's dont know what to fill up. some of the oter custum feald are required, including the title. thank you.
bfarber Posted April 2, 2020 Posted April 2, 2020 The proper way to do this would be to write a plugin against \IPS\nexus\Support\Reply to remove the form element, and then to build the content to be saved. In order to do this properly, though, you'd need a good grasp on our framework and how content items work and interact. I'm glad you've found a solution that works for you, but just wanted to respond for anyone else who may come across this.
Recommended Posts