Forums

multiplier custom field

ideagrup 13 Aug, 2016
Hello friends,

How can i put contents into field custom in multiplier??

I have tried this and other proves and No running.

Content custom field into multiplier
<?php
echo $form->data['hf']['__N__']['co_nombre'];
?>

If I change __N__ per a number is running OK.

Thomas
GreyHead 13 Aug, 2016
Hi Thomas,

Ther problem here is that the __N__ is not replaced until the form is displayed in the browser and then it is done using JavaScript. So when your code runs the __N__ is still an text string.

You can possibly achieve the same result by loading the data into a JavaScript variable and then looking it up when the + button is clicked.

What exactly do you need to do?

Bob
ideagrup 14 Aug, 2016
1 Likes
OK!!!!! do it

inside custom field it puts {model.__N__.field}

Thanks
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger