This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 3
How to change the Saved Form URL?
Started 13 years ago by zeograz | 6 posts |
- 
		
		
	
		
		
		Hi, I need to change the link sent by the Saved Form so that it includes virtual directory path instead of actual path to Machform folder. For example, I have a virtual directory set up in IIS called Implementation which points to C:\Inetpub\Wwwroot\machform. When the Saved Form sends the email link to the form I would like it to show as //localhost/implementation/[Saved Form View info] instead of //localhost/machform/[Saved Form View info]. How can I change this? Thank you, 
 MarkPosted 13 years ago #
- 
		
		
		
		
		That link is being generated by the code on "includes/post-functions.php" file around line 2349: //pass form resume url $form_resume_url = $mf_settings['base_url']."view.php?id={$form_id}&mf_resume={$form_resume_key}";I suppose you can change the $mf_settings['base_url']part with your own hardcoded URL.MachForm Founder Posted 13 years ago #
- 
		
		
	
		
		
		Hi Yuniar, If I change this string $form_resume_url = $mf_settings['base_url'] to this: $form_resume_url = http://localhost/implementation/ Then the View function of the form no longer brings up the view (it is blank). Am I doing something wrong? Thanks! Posted 13 years ago #
- 
		
		
	
		
		
		I think you have your coding wrong; I think it should be exactly as the original is written but replace base_url with your URL, like so: //pass form resume url $form_resume_url = $mf_settings['http://localhost/implementation/']."view.php?id={$form_id}&mf_resume={$form_resume_key}";Posted 13 years ago #
- 
		
		
		
		
		AMurray almost got it correct! :-) 
 It should be like this:$form_resume_url = "http://localhost/implementation/view.php?id={$form_id}&mf_resume={$form_resume_key}";MachForm Founder Posted 13 years ago #
- 
		
		
	
		
		
		Worked like a charm! Thanks! Posted 13 years ago #
Reply
You must log in to post.

