Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This simple demo show how to use the "Redirect to URL" IFTTT action

It simply redirects you to the lmgtfy.com adding your query to the query parameter

Code Block
http://lmgtfy.com/?q=[entry.q]

Also it stores the data queried...

ConfiForms Form Definition
formNamef
Search

 

qSearch querytext

Redirect to URLonCreatedhttp://lmgtfy.com/?q=[entry.q]

 

 

Storage format for the configuration

Code Block
<ac:structured-macro ac:macro-id="ff6829af-769a-427c-a2a2-bbdbd58dc538" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">f1</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="2774e4a1-dd90-452f-8471-5d992637ca28" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:parameter ac:name="registrationButtonLabel">Search</ac:parameter>
      <ac:rich-text-body>
        <p> </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <ac:structured-macro ac:macro-id="33efe1c1-422b-4b14-9999-dd45d78086c2" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">q</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Search query</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <ac:structured-macro ac:macro-id="e28218d7-a5de-4364-8311-96b8ea5de624" ac:name="confiform-ifttt" ac:schema-version="1">
      <ac:parameter ac:name="action">Redirect to URL</ac:parameter>
      <ac:parameter ac:name="event">onCreated</ac:parameter>
      <ac:parameter ac:name="title">http://lmgtfy.com/?q=[entry.q]</ac:parameter>
      <ac:rich-text-body>
        <p> </p>
      </ac:rich-text-body>
    </ac:structured-macro>
  </ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="89544530-99dc-418e-a493-d233b25d355b" ac:name="info
Hello
" ac:schema-version="1">
  <ac:rich-text-body>
    <p>Hello</p>
    <p> </p>
  </ac:rich-text-body>
</ac:structured-macro>