hi everyone

ok so this is what iv done, using the profile2 module i have included a Location field 9used for gmap) which the user fills in when registering, iv also included a telephone number Text field and a Website Text field.

I then created a Rule, which upon registering of a new user it creates a new Node of type School. The School content type also has a Location field. Now i set the Rule to automatically fill in the fields for the School node using the fields filled in at user registration. It successfuly takes the Telephone text field and Website field and puts the correct information in the relevant fields on the School node, except the Location field. I mean i dont even have the option to select the location field within rules to set a value for it. Or am i missing something here and i gotta go a different way about it?

Any help would be much appreciated, iv been doing it for 3 days and cant find any info online to help me

Regards

Comments

prezaeis’s picture

anyone ?

IWasBornToWin’s picture

I have the same challenge. I'm Still looking for a solution

IWasBornToWin’s picture

IWasBornToWin’s picture

Could get #3 to work. Any suggestions from the module developer? I've asked questions before about this mod and you get an answer....never. Any help please?

IWasBornToWin’s picture

Could not get #3, i meant

IWasBornToWin’s picture

This one is tough, I still can't seem to figure out how to do it.

IWasBornToWin’s picture

I solved this last night using views rule module. I am running out and will check back in later but basically i created a "rules" type display in views of location fields. I then gave it a contextual filter of user id from logged in [current user]. Then i created a rule, added action to show the view. You will have to set the paramaters for the view inside the view and the rule. I just set it as a user parameter.

I then created another action to fetch the row from the view.

To play with this, just create a rule that shows a system message once the criteria is met. (ie; city = New York) just to test.

I will give more explanation later.

IWasBornToWin’s picture

Fayna’s picture

Could you export your rules view that you used to accomplish this from #7?

rooby’s picture

Priority: Critical » Normal

Support and feature requests do not use the critical priority.

For more info see http://drupal.org/node/45111

IWasBornToWin’s picture

Status: Active » Closed (won't fix)

I removed this module and went with the geo field suit of modules, works much better....and....location module is being depleted anyway.

joegl’s picture

Issue summary: View changes

What ended up being the solution? I'm having the same issue right now. I'd like to populate the location information for a node using a rule but I can't seem to access the location fields at all.