This object is in archive! 

Default Values on Quote

Casey P. shared this question 10 years ago
Answered

How do I make 'Surface Type' unneccessary (and therefore remove it)? If this is impossible, I'll settle for the following question.


How do I hide 'Delivery Type' and set my own default value?


How do I set a default Start and End Time? I successfully implemented data-minute-step='30' but data-default-time and data-default-value don't seem to work. I also tried using javascript's document.getElementById("starttime").value="7:00 PM"; but to no avail.


Thanks for any help!

Best Answer
photo

Surface Type: You would could remove the html associated with it on all your pages. However, you would need to put a hidden input field with the same form name that we are using for surface type, and it should match a valid surface type on your account.


Delivery Type: Do the same as above.


Replacing the value in the input with the default time you want should do it. However, if a customer is editing a quote and their quote had a different time, it would be overwritten by your default value.

Comments (2)

photo
1

Surface Type: You would could remove the html associated with it on all your pages. However, you would need to put a hidden input field with the same form name that we are using for surface type, and it should match a valid surface type on your account.


Delivery Type: Do the same as above.


Replacing the value in the input with the default time you want should do it. However, if a customer is editing a quote and their quote had a different time, it would be overwritten by your default value.

photo
1

Ah, I didn't try just changing the value for the the start/end times. That's what I'll do for now. If you come up with a way to do it differently down the road, please let me know (like, some kind of script that checks for a user-input value in *starttime* and replaces the current value with that).


For anyone else, here is the code for putting in hidden defaults:

  1. <input name="deliverytype" type="hidden" value="whateverYouWant" />
  2. <input name="surface" type="hidden" value="whateverElse" />

Now I feel dumb cause I tried this the other day using "delivery" instead of "deliverytype" lol. It must've been late. Thanks for putting me back on track!

Replies have been locked on this page!