post form

Go down

Solved post form

Post by Fernanda Nunes April 30th 2017, 1:52 am

Hello how are you?
I would like to create a post form with the following items in all topics:
Product Specification:
Buy or Sell:
CIF or FOB or CFR:
Qunatity:
Price:
Payment Type:
Time of Validity of the offer or inquiry:
Other observations:
Being that filling out this form is not mandatory, but just to direct, I do not even know what HTML means, so I really need help to accomplish this miracle in science, please give me the code to copy and cole in java Sniff


Last edited by Fernanda Nunes on May 1st 2017, 8:21 pm; edited 1 time in total
Fernanda Nunes
Fernanda Nunes
Forumember

Posts : 29
Reputation : 2
Language : portuguese

View user profile

Back to top Go down

Solved Re: post form

Post by SLGray April 30th 2017, 2:44 am



textarea_content - post form Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 48820
Reputation : 3409
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: post form

Post by Fernanda Nunes April 30th 2017, 8:48 am

I added it:
$(function() {
if (location.pathname == '/post' && location.search == '?f=388&mode=newtopic') {
$('#text_editor_textarea').val('Product Name:');
}
});

But didnt work. Im a lawyer, I dont know how to make this codes dear Of course...
Fernanda Nunes
Fernanda Nunes
Forumember

Posts : 29
Reputation : 2
Language : portuguese

View user profile

Back to top Go down

Solved Re: post form

Post by skouliki April 30th 2017, 9:11 am

hello

the reasons for not working are cause you did not write your form fields between the single quotes in val() and the line breaks must be written as \n otherwise you risk breaking the script.

see again the tutorial and follow the steps
skouliki
skouliki
Manager
Manager

Female Posts : 10518
Reputation : 1338
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: post form

Post by Fernanda Nunes May 1st 2017, 1:07 am

$(function() {
if (location.pathname == '/post' && location.search == '?f=388&mode=newtopic') {
$('#textarea_content > div > textarea').val('Field 1:\nField 2: Don\'t fill this field in\nField 3:');
}
});

id:388
val = Product Name
Why please its not working
Fernanda Nunes
Fernanda Nunes
Forumember

Posts : 29
Reputation : 2
Language : portuguese

View user profile

Back to top Go down

Solved Re: post form

Post by SLGray May 1st 2017, 4:24 am

Do you have JavaScript Management activated?


textarea_content - post form Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 48820
Reputation : 3409
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: post form

Post by skouliki May 1st 2017, 7:54 am

@Fernanda Nunes wrote:Hello how are you?
I would like to create a post form with the following items in all topics:
Product Specification:
Buy or Sell:
CIF or FOB or CFR:
Quantity:
Price:
Payment Type:
Time of Validity of the offer or inquiry:
Other observations:
Being that filling out this form is not mandatory, but just to direct, I do not even know what HTML means, so I really need help to accomplish this miracle in science, please give me the code to copy and cole in java Sniff

try this code
Code:
$(function() {    if (location.pathname == '/post' && location.search == '?f=388&mode=newtopic') {       $('#text_editor_textarea').val('[b]Product Specification[/b]:\n[b]Buy or Sell[/b]:\n[b]CIF or FOB or CFR[/b]:\n[b]Quantity[/b]:\n[b]Price[/b]:\n[b]Payment Type[/b]:\n[b]Time of Validity of the offer or inquiry[/b]:\n[b]Other observations[/b]:');
    }
});
skouliki
skouliki
Manager
Manager

Female Posts : 10518
Reputation : 1338
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: post form

Post by Guest May 1st 2017, 8:45 am

Hello,

@skouliki, that code ain't going to work. @Fernanda Nunes, add this code with placement on all the pages:
Code:
$(function(){
var f=388;
if(/f=/+f+/&mode=newtopic/.test(window.location.search)){
$("textarea").sceditor("instance").insertText("Product Specification:\nBuy or Sell:\nCIF or FOB or CFR:\nQuantity:\nPrice:\nPayment Type:\nTime of Validity of the offer or inquiry:\nOther obervations:");
}
})
You have to modify number 388 from
Code:
var f=388
with the id of the forum. Make sure that you have the Javascript codes management activated. If it is not working, post your forum address here for us to take a look at it.
avatar
Guest
Guest


Back to top Go down

Solved Re: post form

Post by Draxion May 1st 2017, 6:50 pm

@Wolfuryo... that code she placed will work just fine just so you know. lol
Draxion
Draxion
Support Moderator
Support Moderator

Male Posts : 2501
Reputation : 321
Language : English
Location : USA

View user profile https://www.talesoftellene.com/

Back to top Go down

Solved Re: post form

Post by Guest May 1st 2017, 7:01 pm

Well, in didn't work in the firefox console, but i might have messed something up. Smile
avatar
Guest
Guest


Back to top Go down

Solved Re: post form

Post by Fernanda Nunes May 1st 2017, 7:34 pm

I thank you very much for your patience, I am a lawyer in Brazil, I do not understand anything of these codes and I am suffering horrors researching the days about it to try to do this.
I need a code to put in the post form the following:
Product Specification:
Buy or Sell:
CIF or FOB or CFR:
Quantity:
Price:
Payment Type:
Time of Validity of the offer or inquiry:
Other observations:
The code you gave me has not worked yet, as you can check below on the prints I've removed for you to see.
http://forum.wbcforum.com/post?t=388&mode=reply
When replying to a topic still does not appear "Product Specification" to be filled, remembering that this form is not mandatory for forum members, but only one direction in their posts.
Thanks again for the immense patience, if you can not modify the post form, no problem, I give up, because I've tried a lot and nothing works
textarea_content - post form 115
textarea_content - post form 216
textarea_content - post form 313
Fernanda Nunes
Fernanda Nunes
Forumember

Posts : 29
Reputation : 2
Language : portuguese

View user profile

Back to top Go down

Solved Re: post form

Post by Guest May 1st 2017, 8:08 pm

This got solved by PM. Working code:
Code:
$(function(){
if(/388&mode=newtopic/.test(window.location.search)){
setTimeout(function(){
$("textarea").sceditor("instance").insertText("Product Specification:\nBuy or Sell:\nCIF or FOB or CFR:\nQuantity:\nPrice:\nPayment Type:\nTime of Validity of the offer or inquiry:\nOther obervations:");
}, 1000);
}
})


Last edited by Wolfuryo on May 1st 2017, 8:17 pm; edited 1 time in total
avatar
Guest
Guest


Back to top Go down

Solved Re: post form

Post by Fernanda Nunes May 1st 2017, 8:11 pm

Thank you dear, you are the best, thank you Hello Hello Hello Hello Hello
Fernanda Nunes
Fernanda Nunes
Forumember

Posts : 29
Reputation : 2
Language : portuguese

View user profile

Back to top Go down

Solved Re: post form

Post by SLGray May 1st 2017, 11:44 pm

Problem solved & topic archived.
Please read our forum rules: ESF General Rules
Everyone needs to remember that support is not through PM's, except for issues with founder's password.


textarea_content - post form Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 48820
Reputation : 3409
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum