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?


  1. zeograz
    Member

    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,
    Mark

    Posted 12 years ago #
  2. yuniar

    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 12 years ago #
  3. zeograz
    Member

    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 12 years ago #
  4. AMurray
    Pro Member

    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 12 years ago #
  5. yuniar

    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 12 years ago #
  6. zeograz
    Member

    Worked like a charm! Thanks!

    Posted 12 years ago #

RSS feed for this topic

Reply