Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.

    GIF shows where to locate </> in the thread and or post editor toolbar.
    To learn more about how to use our BBCode feature, review our "How to post your code into threads" here.

    Thank you, Code Forum.

Need some help with HTML code to

DocBlack4444

New Coder
hello, i am not good at HTML coding, i have always done a google search for what i need done and copy/pasted into the sites to get them to do what i want.

So i am asking for some help to write a code that will make this work.

the webpage that i am working on is a HTML, i am unable to use JQuery or other coding languages so google searches are not giving me what i need.

i am able to hard select the date picker as an object embedded into a form that will be submitted via the website, i can add advanced coding to the object but i cannot alter the base code of the form itself.

what i need this thing to do, is when someone chooses the date on the date picker that is already hard set and not coded into this extra scripting the code should then display a day count from the current day to the selected day from the date picker and display the following:
if under 45 days: " Your selected date is __ days away, which is LESS THEN 45 DAYS, please select the less then 45 day option"
if over 45 days: "Your selected date is __ days away, which is 45 days or more, please select the 45 days or more option"


I simply don't know how to write this in code language with the date picker already hard coded or for this to list one of the 2 options based on the use input on the date picker. this is so much more then making text bold, which i still am not 100% sure how to code myself.

any help or directional pushing would be greatly appreciated. please don't tell me to look this up somewhere else, i have spent 2 days trying to piece this together and it is NOT working.
 
You say that you can't use jquery, good that's a crap solution. Can you use raw Javascript?
What date picker are you using?
There is something called a date range picker where two calendars are displayed side-by-side and it will give you the number of days ... between the entered dates. You can google search and find one you like. Don't know if it will take today's date automatically.
 
You say that you can't use jquery, good that's a crap solution. Can you use raw Javascript?
What date picker are you using?
There is something called a date range picker where two calendars are displayed side-by-side and it will give you the number of days ... between the entered dates. You can google search and find one you like. Don't know if it will take today's date automatically.
the structure this is built in does not allow anything other then HTML. i don't know if you are aware of it, but it is called LEAF. it allows for the capture and automation of administrative tasks y allowing the user to build the form and then send it through custom designed steps. but we don't have access to the page code, just "advanced" code boxes in items that we are allowed to place on the forms. the date picker is hard coded as an element, i have coded a datepicker in the HTML code and the data is not gathered from it on the form and send through. it just gives me a second box and both have a date picker drop down but the data is only gathered from the element, not the coded box. i switched the element to a text box and to a raw data box and the date from the html datepicker still was not captured.

so i know that i need to figure out in HTML, how to read the date from element 591 and then have a message displayed saying what i want the user to click on. i have played with html code and was able to put some typing in there, but i am not able to make the selected date alter that, actually......i don't know how to do that. i hope this makes more sense.
 
the structure this is built in does not allow anything other then HTML. i don't know if you are aware of it, but it is called LEAF. it allows for the capture and automation of administrative tasks y allowing the user to build the form and then send it through custom designed steps. but we don't have access to the page code, just "advanced" code boxes in items that we are allowed to place on the forms. the date picker is hard coded as an element, i have coded a datepicker in the HTML code and the data is not gathered from it on the form and send through. it just gives me a second box and both have a date picker drop down but the data is only gathered from the element, not the coded box. i switched the element to a text box and to a raw data box and the date from the html datepicker still was not captured.

so i know that i need to figure out in HTML, how to read the date from element 591 and then have a message displayed saying what i want the user to click on. i have played with html code and was able to put some typing in there, but i am not able to make the selected date alter that, actually......i don't know how to do that. i hope this makes more sense.
I don't think it's possible without JavaScript.
 

Buy us a coffee!

Buy me a coffee.
Back
Top Bottom