- Posts: 13
COMMUNITY FORUM
retrieve data from extra fields
- max
- Topic Author
- Offline
- New Member
Less
More
11 years 8 months ago #109007
by max
retrieve data from extra fields was created by max
Hello everyone, I'll explain what I would get:
I have a page in which I created a "sheet" of some vehicles at the bottom I added (via a plugin) a form (chronoform, with the possibility of dynamic fields) to request a quote about the vehicle you are looking at.
My need would be to be able to retrieve values from certain fields k2 (extra field) and then they can go and insert into the form (for example, Make, Model).
The first step therefore is to recover the values that I need ... what to do?
I have a page in which I created a "sheet" of some vehicles at the bottom I added (via a plugin) a form (chronoform, with the possibility of dynamic fields) to request a quote about the vehicle you are looking at.
My need would be to be able to retrieve values from certain fields k2 (extra field) and then they can go and insert into the form (for example, Make, Model).
The first step therefore is to recover the values that I need ... what to do?
Please Log in or Create an account to join the conversation.
- william white
- Offline
- Platinum Member
Less
More
- Posts: 3722
11 years 8 months ago #109008
by william white
Replied by william white on topic Re: retrieve data from extra fields
I have done the same thing with rsforms before. I cannot remember exactly what it did, but i would start by trying the standard syntax
$this->item->extraFields->EXTRAFIELDALIASHERE->value
and inserting it into the area of the form designed for code
$this->item->extraFields->EXTRAFIELDALIASHERE->value
and inserting it into the area of the form designed for code
Please Log in or Create an account to join the conversation.
- max
- Topic Author
- Offline
- New Member
Less
More
- Posts: 13
11 years 8 months ago #109009
by max
Replied by max on topic Re: retrieve data from extra fields
thanks for the quick response.
Unfortunately I have no experience in programming and then can not figure out how to use what you wrote, could you be a little 'more specific?
These strings should be included in the dynamic fields of the form or code before the form?
Unfortunately I have no experience in programming and then can not figure out how to use what you wrote, could you be a little 'more specific?
These strings should be included in the dynamic fields of the form or code before the form?
Please Log in or Create an account to join the conversation.
- william white
- Offline
- Platinum Member
Less
More
- Posts: 3722
11 years 8 months ago #109010
by william white
Replied by william white on topic Re: retrieve data from extra fields
When the rs form was plugged into the k2 item, i think there was a place in rsform that you could enter custom php code. As i recall i put the item title into the form so people could inquire about "this" item
I havent used chronforms in a long time
Feel free to email me if your interested in switching to rs
I havent used chronforms in a long time
Feel free to email me if your interested in switching to rs
Please Log in or Create an account to join the conversation.