[SOLVED]ID” Name for Input fields”

Home – SaaS Forums Support questions WooPrice Calculator (Pro) [SOLVED]ID” Name for Input fields”

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5207
    Eckhard Staas
    Participant

    I need an ID for the input fields. Is it possible?

    Change this

    To this

    #5217
    bill
    Participant

    Hello,
    sorry for the delay of giving you an answer.

    That it’s not directly possible but you can refer to his parent div.
    In the input field above you see that the parent div has the following ID and you can make your rules by using that id.

    Also you can see our documentation of Advanced Validation Rules, to check fields using PHP:
    https://altoswebsolutions.com/manual/woo-price-calculator/advanced-validation-rules

    Kind Regards,
    Bill
    AT1068

    #5215
    Eckhard Staas
    Participant

    Thanks for your answer, but I need the value from the input field. I want to fetch the value with “getElementByID”.
    Maybe I can edit a PHP file to add the ID. Which file is generating the view for the product page?

    #5213
    bill
    Participant

    Hello,

    you can fetch the value by using “$(‘input[name=”aws_price_calc_n”]’).val()” this way you will have the value for the input.

    The file that generate the view for the product page is”woo-price-calculator/admin/awspricecalculator/View/product/product.php” but we don’t recommend to modify it

    Waiting for your feedback
    Kind Regards,
    Bill
    AT1068

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.