Total : 0.00 €

Before contacting us, please make sure to check our F.A.Q

Please, login or register to our website in order to be able to post a presale question in the forum.

× WooPrice Calculator PRO

[SOLVED]"ID" Name for Input fields

More
6 months 3 weeks ago #2069 by bill
bill replied the topic: "ID" Name for Input fields
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

Please Log in or Create an account to join the conversation.

More
6 months 3 weeks ago #2066 by Eckhard Staas
Eckhard Staas replied the topic: "ID" Name for Input fields
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?

Please Log in or Create an account to join the conversation.

More
6 months 3 weeks ago #2064 by bill
bill replied the topic: "ID" Name for Input fields
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.

<td class="awspc-field-widget-line" id="aws_price_calc_input_1">
<div class="awspc-field-widget" data-id="aws_price_calc_1">

<div class="awspc-field aws_price_calc_numeric">

<input name="aws_price_calc_1" type="text" value="">

</div>

</div>
</td>

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


Kind Regards,
Bill
AT1068

Please Log in or Create an account to join the conversation.

More
6 months 3 weeks ago #2061 by Eckhard Staas
Eckhard Staas created the topic: "ID" Name for Input fields
I need an ID for the input fields. Is it possible?

Change this
<input name="aws_price_calc_1" value="100" type="text">

To this
<input name="aws_price_calc_1" ID="aws_price_calc_1" value="100" type="text">

Please Log in or Create an account to join the conversation.

Moderators: david
Time to create page: 0.407 seconds

Cart

Total : 0.00 €