Okay
  Public Ticket #2844294
Custom Field value
Closed

Comments

  •  2
    Alexander T Martins started the conversation

    I'm trying to populate a Custom Field with a value. I've tried Javascript, but there's no #ID for the field; I can only choose a CSS selector:

    <script>
    document.querySelector("#am-confirm-booking > div:nth-child(1) > form > div.am-confirm-booking-data.el-row > div.am-custom-fields > div > div:nth-child(1) > div > div > div > input").setAttribute("value", "test");
    </script>

    This is not simply a placeholder, I need an actual value.
    The result I'm trying to achieve is to populate the field with a value from the URL, such as http://example.com/booking?value=test, but I can't seem to add data to the field.

    Any ideas? :)

  • [deleted] replied

    Hi Alexander,

    thank you for reaching out to ussmile.png

    Custom fields cannot be prepopulated at the moment using variables; they need to be manually filled by the user I'm afraid.


    It probably can be done with some custom work, but our developers are very busy at the moment, working on some priority tasks and fixing bugs and issues with our plugins, so they won't be having the time for custom work in near future.

    But we can recommend these services for customization:

    https://codeable.io/?ref=l1TW1

    https://wpkraken.io/?tms-plugins

    They do develop such solutions, so can you please send your inquiry to them?


  •   Alexander T Martins replied privately
  • [deleted] replied

    Hi Alexander

    Unfortunately the plugin doesn't have the ability to parse the information collected in that way that is why it is ignoring it. We would be more than happy to give you any advice on how to achieve what you need, but I'm afraid our support team doesn't possess the required knowledge and our developers don't accept custom requests at the moment.

    If there is anything else we can assist you with please don't hesitate to ask we will do our best to helpsmile.png

  •  2
    Maria Konstantinov replied

    Hello! I am trying to do the same thing, could you please instruct on how this can be achieved?

  • [deleted] replied

    Hi Maria and Howard,

    thank you for reaching out to ussmile.png

    Please make sure to open separate tickets and we will be happy to assist, as having 3 clients in one ticket could lead to a slower process.