problem with if/else with liquid trying to fill out a form in advance

I'm trying to automatically fill out parameters with a custom using liquid - field you see something wrong with the statement ' if/else '? AutoFill works OK if it is not empty but is unable to do the part "else" (replace with "New South Wales" If empty) - thanks in advance!

Billing booking status < label for = "CAT_Custom_20031893_187341" > < / label >

< select name = "CAT_Custom_20031893_187341" id = "CAT_Custom_20031893_187341" class = 'required cat_dropdown' >

"< option value =" ">--please select--< / option >".

{% If CAT_Custom_20031893_187341! = "" %}}

< option value = '{module_customerfield, 187341, 20031893}' selected = "selected" > {module_customerfield, 187341, 20031893} < / option >

< option value = "New South Wales" > New South Wales < / option >

{%-%}

< option value = "{module_customerfield, 187341, 20031893}" > {module_customerfield, 187341, 20031893} < /op ing >

< option value = "New South Wales" selected = "selected" > New South Wales < / option >

{endif %}

< option value = "Queensland" > Queensland < / option >

< option value = "South Australia" > South Australia < / option >

< option value = "Tasmania" > Tasmania < / option >

< option value = "Victoria" > Victoria < / option >

< option value = "Western Australia" > Western Australia < / option >

< / select >

< script type = "text/javascript" >

document.getElementById('CAT_Custom_20031893_187341').value = "{module_customerfield, 187341, 20031893};

< /script >

Not all variables 'empty' corresponding to the empty string.

Try something like {% if CAT_Custom_20031893_187341 and CAT_Custom_20031893_187341 != "" -%} .

Tags: Business Catalyst

Similar Questions

  • I am trying to fill out a form and when I get to a certain part what I type is duplicated all the way down the rest of the form.

    I am filling a form and when I get to a certain part, what I'm typing is duplicated to the bottom of the page.

    Who would say that the form has been successfully created.  What is a public form?  If so, can you post a link to it?

  • I have problems with the form widget. When I created my forms, I need to leave out the line, one email because my client does not want the message line and two because those who have tried to fill the online form cannot submit because that box "email".

    I have problems with the form widget. When I created my forms, I need to leave out the line, one email because my client does not want the message line and two because those who have tried to fill the online form cannot submit because the 'email' box keep rejecting their email address valid. And I just tried to remove the line in my form and it does not allow me to delete or to mark it as not necessary either.

    Currently, there is no way around the field email forms of the Muse. Another option is to have a look at Jotforms or another third-party provider of shape that Muse has widgets for.

  • Problems with the Paint Bucket fill tool with Windows

    I've searched the forums from Adobe on this problem and I noticed that many of them are still listed as unanswered. There are a lot of good ideas out there, but I'm trying to fill in a form that I created using several strokes that are overlapping with a completely sealed space in which still cannot be completed. I can fill in forms with the form (ie. ellipse, rectangle, etc.) tool, but every time I have to draw a shape by hand or by using the online tool he still doesn't accept the paint bucket. I tried it on a Mac with Flash Professional CS5 (which is what I'm working with on my computer) and the tool works perfectly. Does anyone know what other parameters or options I which can be settled otherwise; the paint bucket tool with a selected color, Alpha for bucket at 100%, the Reading Gap size "close major gaps" or lines do not finish the form? Other ideas would be very useful... Thank you!

    The following worked for me: a high magnification zoom > try to click the lines instead of the empty space of void. I think programmers of Adobe has made some changes to the interactions. It's silly, how the behavior of click of this tool is, but it works. Try zooming in and clicking on the lines - do not forget to use TINY arrowhead in the fill icon. That's the thing.

  • I'm having a lot of problems with firefox and cannot figure out how to get help. It all started when I updated to 13. I get all kinds of advertising popups, I can't play a

    I'm having a lot of problems with firefox and cannot figure out how to get help. It all started when I updated to 13. I get all kinds of advertising popups, I can't play a game on FaceBook called Farm Town at all, and I get a popup of AVG on the cookies that I can't get rid of. These issues are causing me to use Chrome quite often, although I like Fox better. I've searched and searched how to get help and find nothing. How can I get personalized technical help? These problems will not occur in Chrome at all. Thank you.

    Do a check with some malware malware, analysis of programs on the Windows computer.

    You need to scan with all programs, because each program detects a different malicious program.

    Make sure that you update each program to get the latest version of their databases before scanning.

    Alternatively, you can write a check for an infection rootkit TDSSKiller.

    See also:

  • I have a problem with my HDD to fill without no reason.

    I have a problem with my HDD to fill without no reason.  I should have about 340 GB free and it reads now only 18 GB free.  Can I have found the culprit (Revo Uninstaller Pro) because he stop to fill in after I removed it.  I can't find where all the "whatever" went.  I don't see anything funny in the registry and cannot find the strange files on the C drive under computer.  I wouldn't mess with the registry too but I as I am limited in my understanding of what's there.  I scanned the hard drive with my Avast Anti Virus and the Microsoft Emergency scan engine and found nothing.  If someone could give me an idea of what happened and how to get my rear disc space, I would be grateful.

    Avoid Revo Uninstaller Pro software type (including the registry cleaners "" and system optimizer).
    Programs and features does the job quite well.
    -There is no advantage to playing in the registry.

    -First run Disk Cleanup defragment the HARD disk in order to have a 'clean' basis of work form.

    -Treesize will show exactly what is there and how much of it.
    http://www.Jam-software.com/treesize_free/

    -Check how much space is used by System Restore.
    Restoration of the system- How do I

    -Indexing research is supposed to implement a very large file as well. You can limit where it indexes
    or turn it off completely in - Control Panel > Indexing Options
    -Check there is no software constantly writing/rewriting something. These activities have
    view in Task Manager-process.

    -Have another look through programs and features and see if there is has than nothing installed, you
    do not use or need and to uninstall, but software doesn't generally use a lot of space.

    .

  • I'm filling out a form that is available on a site. When I click on the option to fill out and submit the form 'online' a pdf document is displayed in chrome with the following text "to display all of the content of this document, you need a later version

    I'm filling out a form that is available on a site. When I click on the option to fill out and submit the form 'online' a pdf document is displayed in chrome with the following text

    «To display all of the content of this document, you need a later version the viewer PDF.» You can upgrade to the latest version of Adobe Reader from www.adobe.com/products/acrobat/readstep2.html for further support, go to www.adobe.com/support/products/acrreader.html"

    Needless to day, I installed the latest version. I even reinstalled using the link in the message, but nothing helped. Whenever I click on the link to go forward, I get the same message. Question: (i) is it my PC/software (Vista), (ii) is the site where I'm trying to submit the form, or (iii) is it the software acrobat reader. Note that I used successfully the last version to fill out and sign forms.

    It is none of them. It's Chrome, which is ignoring Adobe Reader and showing the message.

    Solution: just save the document (with the message) to your desktop. Then open it in Adobe Reader. The 'real' should then display.

  • My organization wants to partner with Mozilla, I filled out the form of "Work with us" several times but no feedback

    I filled out this form https://www.mozilla.org/en-US/about/partnerships/ several times and I never receive any comments. Is there a phone number I can use to get in touch with Mozilla on a potential partnership or email?

    Hi Kombuta,

    Thanks for your post, I'm sorry that you don't have a response to the form that you filled for the partnership with us. Can you tell me when you have completed the form, by chance? This will help me to direct the proper person to your form.

    Otherwise, you can also send me a private message to [email protected] with the information and I will pass along (I'm a Mozilla employee, customer management).

    Thank you and my apologies for the late reply, I appreciate your patience and your interest in Firefox OS!

    Kind regards
    Michelle Luna

  • I want to create a form with a Manager to fill out a section and a member of the staff another. The two sections protected by different password.

    I want to create a form with a Manager to fill out a section and a member of the staff another. Should be able to change the other. Different sections is password protected with different passwords? I think it might be a function of "official use only."

    You can use 2 forms in a portfolio.

  • PC hangs when I tried to fill in PDF forms

    My PC crashes when I tried to fill in PDF Forms. The same problem occurs when I tried to print the PDF file.

    Hello

    Did you follow the steps mentioned in the document that I gave you? If Yes, what helped?

    You could try to repair your Acrobat once and see how he reacts.

    Launch Acrobat > go to help > repair the Installation of Acrobat.

    Concerning

    Sukrit diallo

  • I have a problem with the password being filled automatically.

    Original title: automatic password with filling points

    My Windows log in password auto fills points after clicking on a key shot. I closed and re-tried 3 times.  I emptied the usb ports and that did not help either.  I'm not sure that reset my password will help.  Any suggestions?

    If the keys are pressed (locked/stuck) or keyboard error may raise this issue.

    You can try the following:
    Go to the page of the BIOS Setup, create a password (for this process, see your system manual). Now, enter a text of your choice. If you find the same mistake, it's a problem with the keyboard.
    You can consult your PC manual contact the manufacturer of your PC of any troubleshooting this utility in your PC to test the keyboard.
    Response if the issue is not with the keyboard.
  • Save before exit Skillbuilders (version 3.0.1 for APEX 4.0): problem with some element of list in the form Manager

    Hello

    I have a problem with the plugin save before exit that I downloaded from Skillbuilders. As I use Oracle APEX version 4.0.2 and Oracle 10 g r2 database; so I downloaded one that says "Save before release (version 3.0.1 for APEX 4.0)" skillbuilders and follow-up of their documentation to import the plugin and use it.

    My problem is that even if I do not make any changes to data in the form and go to another tab. the alert message always appears, and by the way, I have an element of list manager on my form and it gets highlighted. So, even if I make the changes or do not change; still, the alert message is displayed and highlights the element of list manager. I think maybe the problem is to have a crèche in the form list item. I have reproduced the same problem in my personal workspace. Here are the details.

    http://Apex.Oracle.com/pls/Apex/f?p=55129

    Details of the workspace

    Name of the workspace: raghu_workspace

    username: orton607

    password: orton123

    App # 55129

    Page: 2 - has the element of list manager.

    Page 3 - works fine without the element of list manager

    Please help with possible suggestions.

    Thank you

    Orton

    Orton,

    I have connected to the workspace you and added a replacement JS file that corrects this error.

    If please, give it a whirl and let me know if you find other problems with it.

    It is to the 3.0.2 version of the plugin and I do not know if this even fix will work for your local Apex version earlier.

    When you are ready to go to the APEX 4.0.2 Please contact me directly for assistance. In the meantime, I'll work on the creation of a patch for this kind of new downloads of the plugin will contain this change.

    Greg

    [email protected]

  • Can I evaluate and fill out a form with data from a custom data object?

    I'm not a developer, but I'm trying to find as much information for my web team so they can implement this for me.  We use the E10.

    I have some information for the contacts stored in a data object custom I want to use for pre-population information access door and in another form.  For example:

    1. User enters his email address into a form and hands
    2. A search and contact and custom data object (CDO)
      1. If the contact has a CDO with the required information, he fills the following form with the information
      2. If the contact does not have the required ORDER, it displays information and a link to the place where to go next

    Is it possible, and where should I direct my developers learn more about treatments?

    Richard

    Hi Richard,

    You can certainly do so using data for the Eloqua Web search (Setup > data Web Look Ups). A database search allows you to request data stored in Eloqua, bring up the page and with a few JS, we determine if they will go on track 1 or 2 you described above.

    Is that an advanced feature requires knowledge of HTML and JS. Here is a good article on data search that should help:

    Using the Eloqua Cookie to customize your Web site

    If you have any specific questions, our support team is very familiar with this feature and can help to solve problems or answer specific questions.

    -Andrew.

  • problem with anchor trying to go back the page

    Hello

    The anchors are easy to make, but for some reason when I'm at the bottom of the page I can't press the buttons to go back to the other anchor points. I have to scroll with my mouse.

    It's really weird because it's like the button is no longer a link. The button are pinned to the right side, but I do not see how it would be a problem as well.

    Can someone help me with this?

    See you soon.

    Don't worry, I answered myself. I didn't know that a layer was on top of the button! My bad.

  • Problem with the release of setting in the form using get-esxcli

    Hello... I tried to format information obtained using get-esxcli.  According to me, the question is to do with the default value fit for the typpe of info I receive.  Instead of get 3 columns, with one row for each parameter name and its configured default information /, I get the following... Name                                          Default                                        Configured                                    ----                                          -------                                        ----------                                    {acpiDbgLevel, allowNonNX, auditMode, autoC... {0, FALSE, FALSE, TRUE,...}                    {0, FALSE, FALSE, TRUE,...} Is anyone able to help out how I can change the formatting to what I was... Here's the code... function get-55HOSTAdvancedSettings ($vmobj) {$55HOSTAdvancedSettingsreport = @ () ForEach ($esxhost in $vmobj) {$settings = (get-esxcli - vmhost $esxhost).system.settings.kernel.list ($false) $row = "" |}} Select-Object Name, by default, configured $row. Name = $settings. Name $row. Default = $settings. Default $row. Set $settings =. {Set $55HOSTAdvancedSettingsreport += $row} if ($OutputToCSV) {$55HOSTAdvancedSettingsreport |} {Export-Csv - NoTypeInformation - UseCulture-path $CSVOutput - Append} else {Write-output $55HOSTAdvancedSettingsreport}} thanks in advance

    With

    $esxcli.system.settings.kernel.list () | FT - AutoSize

    I get the result in three columns.

Maybe you are looking for