post form
4 posters
Page 1 of 1
post form
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
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
Last edited by Fernanda Nunes on Mon May 01, 2017 1:21 pm; edited 1 time in total
Fernanda Nunes- Forumember
- Posts : 29
Reputation : 2
Language : portuguese
Re: post form
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: post form
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
$(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
Fernanda Nunes- Forumember
- Posts : 29
Reputation : 2
Language : portuguese
Re: post form
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
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
Re: post form
$(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
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- Forumember
- Posts : 29
Reputation : 2
Language : portuguese
Re: post form
Do you have JavaScript Management activated?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: post form
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
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]:');
}
});
Re: post form
Hello,
@skouliki, that code ain't going to work. @Fernanda Nunes, add this code with placement on all the pages:
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.
@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:");
}
})
|
Guest- Guest
Re: post form
Well, in didn't work in the firefox console, but i might have messed something up.
Guest- Guest
Re: post form
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
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
Fernanda Nunes- Forumember
- Posts : 29
Reputation : 2
Language : portuguese
Re: post form
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 Mon May 01, 2017 1:17 pm; edited 1 time in total
Guest- Guest
Re: post form
Thank you dear, you are the best, thank you
Fernanda Nunes- Forumember
- Posts : 29
Reputation : 2
Language : portuguese
Re: post form
Problem solved & topic archived.
|
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» How to Change Post Form's color?
» How to exclude form "top post" counter
» html code to post the form in other sites!
» How do connect a thread and post to a form response
» HTML Form?
» How to exclude form "top post" counter
» html code to post the form in other sites!
» How do connect a thread and post to a form response
» HTML Form?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum