How can I restrict multiple web app item submission by a user

I have a webapp setup. I do want users to submitted web app items multiple times. How can I achieve this Kindly help. I know I only achieve this with js. Can someone kindly off.

Hi Chad, am having challenges getting this to work: Kindly assist
This is my setup:
I used the alternate list layout. This is how it looks
This is how my form page with the module looks before running:
This is how the spit out looks when I checked:
This is the source code after running:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
var userSubmit = $('.userItems').data('items').replace(/\s+/g, '');
if (userSubmit >= 1) {
    $('.form').remove();
</script>
<style>
            .hide {
            display: none;
        </style>
</head>
<body>
        <div class="hide userItems" data-items="1
2
3
"></div>
        <div class="form">
        <form name="catcustomcontentform17626" onsubmit="return checkWholeForm17626(this)" enctype="multipart/form-data" method="post" action="/CustomContentProcess.aspx?CCID=20247&amp;OID=13466153&amp;OTYPE=1">
            <table class="webform" cellspacing="0" cellpadding="2" border="0">
                <tbody>
                    <tr>
                        <td><label for="ItemName">Item Name</label><br />
                        <input class="cat_textbox_small" type="text" name="ItemName" id="ItemName" maxlength="255" /> &bull;</td>
                    </tr>
                    <tr>
                        <td><label for="ItemDescription">Item Description</label><br />
                        <textarea name="ItemDescription" id="ItemDescription" cols="10" rows="4" class="cat_listbox"></textarea></td>
                    </tr>
                    <tr>
                        <td><input class="cat_button" type="submit" value="Submit" id="catcustomcontentbutton" /></td>
                    </tr>
                </tbody>
            </table>
            <script type="text/javascript" src="/CatalystScripts/ValidationFunctions.js"></script>
            <script type="text/javascript">
//<![CDATA[
var submitcount17626 = 0;function checkWholeForm17626(theForm){var why = "";if (theForm.ItemName) why += isEmpty(theForm.ItemName.value, "Item Name");if (why != ""){alert(why);return false;}if(submitcount17626 == 0){submitcount17626++;theForm.submit();return false;}else{alert("Form submission is in progress.");return false;}}
//]]>
</script>
        </form>
        </div>

Similar Messages

  • How can I link a web app item to another via Next link

    I would like to add a next link and previous link on a web app detail layout. Then people can scroll through the detail layout items without going back to the list view.
    I'm creating a portfolio with a description of the project details and links to external websites. There is no tag for that purpose.
    Any suggestions? I'm a bit new at custom web apps and editing the layouts with css.

    Hi,
    you would have to create 2 additional custom fields as text (string) field types and name them something like, "next item url" and "prev item url". Then you would have to enter the next and previous item url manually for each individual web app item. You can include the new tags in the detail view, something like <a href="{tag_prev item url}">Prev</a> and <a href="{tag_next item url}">Next</a>.
    Hope that helps.
    Nicole - BC Gurus

  • How can i install iCloud Web App Plugin

    How can i install iCloud Web App Plugin?

    kaliai wrote:
    how can i install osx 10.7.2? because I try to make software update, and he doesnt show me for update
    It must be purchased from the App Store.  It is a full version upgrade.

  • How can I restrict for in app purchases for downloads

    How can I restrict for in app purchases for downloads
    So basically I don't want my kids to be able to downloads apps even if it's free because I want to be able to see what they are downloading

    dilullo1 wrote:
    How can I restrict for in app purchases
    Understanding Restrictions  >  http://support.apple.com/kb/HT4213

  • Is the "Display list of web app items submitted by a user" feature not available in the free trial?

    Is the "Display list of web app items submitted by a user" feature not available in the free trial? I can see it in the tutorials but its not available when I am logged in.

    Its just named a little differently now. You should be able to add the module {module_webappscustomer} through the Modules toolbox in the web page editor window, as indicated below. Please note that webapps feature is available only for webCommerce sites. Read more about the available modules and its usage in detail here - http://kb.worldsecuresystems.com/134/bc_1345.html?bc-partner#main_Web_App_Modules
    Thanks,
    Vinayak

  • Web app: How can I make a web app input form post directly to a sub category

    Please, how can I go about this? Some of the ideas coming to my head is to  replace the section I require with the  generated webapp input form code with this:
    <input type="radio" name="CAT_Category" value="{module_category, ID} onclick="javascript: return false;" >2013 /> // Not tested because am not sure of the markup
    Am I on point ? Or is there any other way I can get this done.

    I Trickster, pardon me if am not clear enough. But this is it. I have many BC Categories setup for different web apps. If you use the module {module_categorylist} only. BC will populate all the categories on the BC site, instead of a specific category  relevant to the web app. If it is {module_categorylist, categoryID}, you are telling BC to use the the categories in a specific category.
    When you say that you want to assign a web app item to a sub-category... do you mean the built in BC categories . I want to do this via the web app input form not through the admin.
    Do you have a top-level category that contains all the relevant sub categories that the user could use to classify/categorize the web app item upon submission?  Yea I have a top category that the user could use. It is this top-level category ID, I have used with the categorylist module.
    If you don't want the user to choose the sub-category themselves, how do you plan to derive the sub-category anyway? Thanks again Trickster. You have provided the solution to that with the hidden input field code you shared earlier. The sub-category has been pre setup as usual in BC and the sub-category ID would be used as you instructed in the code. This is intended for another web app that won't require users selecting a category. This is the example you shared:
    <input type="hidden" name="CAT_Category" value="my category ID"/>
    Using my example above I was able to test and have it working (using {module_categorylist} with the SELECT element) on a web app input form and when I submitted the new web app item it was classified in the category I chose. Yes Trickster, it works for me too that way. the web app item was classified perfectly, but if you go to your the web app item submitted at the admin-end, you will discover in that the category the user selected in the front-end is not selected, even though the item was classified
    I have highlighted it here: http://screencast.com/t/dwiXzBFXp
    The option selected  by the user is not captured. It often defaults to the 2012, even when the user selected 2013 and the item has been classified as 2013.
    I hope am more clearer. Thanks for all the effort.

  • How to add descriptions to web app items?

    How do I add metta data (keywords and descriptions) to my web app items? Do I need to create them as additional custom fields? 
    Any help would be appreciated.

    It's ok, I worked it out.  You just add another field - meta description and add the following code to the detail template:
    <html>
        <head>
            <title>{tag_name}</title>
            <meta name="description" content="{tag_meta description}" />
            <meta content="{tag_name}" property="og:title" />
            <meta content="{tag_meta description}" property="og:description" />
        </head>
        <body>
           <h1>{tag_name}</h1>
            <p>{tag_description}</p>
        </body>
    </html>

  • How can I use a web app to provide me with results from a matrix?

    I have a need to set up a search type box based off a matrix. This is a matrix which shows a list of zip codes down the left column, and a list of products across the top, and the corresponding field from a zip code and a product is the freight rate.
    e.g.
              Product 1     Product 2     Product 3     Product 4
    1234     $10               $12               $14               $16
    4567     $11               $11               $13               $17
    5678     $55               $54               $27               $35    
    so the freight rate to 4567 for product 3 is $13.
    Then what i want to have is a drop down list for a customer to select the product, then a field to enter their zip code, and the search result will be the cross referenced freight rate.
    Is this possible? If so, can someone guide me as to how this would be done?

    Throw this open to the community to chip in, but off the top of my head.... thinking of something along lines of:
    Create 3 web apps,
    Product (Fields Product Name & ProductID)
    Zipcode (Fields Area Desc & Zipcode)
    Freight Rates (Fields FreightRateID (made up of ProductID_ZipCode), Freight Rate)
    Create a web app search form for Web App Freight Rates with:
    Product select, with options drawn from web app 1 using ProductID for value.
    Zipcode select, with options drawn from web app 2 using Zipcode for value.
    Hidden FreightRateID field.
    Once a visitor has selected their product and zipcode, using javascript concatenate the selected ProductID with selected Zipcode.
    This will produce a FreightRateID (e.g. PROD1_4567), which can be loaded into the hidden FreightRateID field.
    When submitted, it will perform a web app search for a Freight Rate that matches the chosen product and zipcode, ie. FreightRateID.
    To make entry of the freight rates easier, maybe add 2 datasource fields to the Freight Rate web app for Product and Zipcode.
    Then create a front end web app add/edit (via a secure zone) to allow entry to be done by:
    Select product, select zipcode then enter freight rate.  (FreightRateID can be created and populated in same way as search above)

  • How can I build a Web App with Component Combination

    I learned OpenUI 5 for a while, since it's open source version release. It's really a great web front-end framework!
    Now I'm working on a little web app. I design it start from a root module. And I wanna make any other view modules as a stand-alone package. (e.g. Something like Widgets can be make as a Component, and I can instance it anywhere I want). From learning of OpenUI, I think Component should be a good choice for my web app module.
    But there is some trouble. When I make two Component with a parent-child relationship.Once the child Compont's router execute navTo method, the hash will be replace but not append. And the parent Component will be changed too.
    The question is : how to design the route pattern can make the parent-child Components works both fine? Andreas Kunz

    Hi Siqi,
    currently there is no Child/parent relationship build in the framework, but you could do it.
    All your child component need is the first part of the pattern from the parent component, you have to pass this one to the child component, and then create the routes dynamically:
    parentPattern + "/myChildComponent"
    Then the parent and the child will both react correctly on a hashchange.
    Best Regards,
    Tobias

  • Web App Items added to Web Form on submission

    I have a site that allows users to search for and borrow items. All items are in a web app. The idea is that when the user searches items, they can add them to a "Borrow List" and once finished they submit a Web Form that contains a list of their items. It should work in a similar manner to a shopping cart, but there is no payment associated.
    How can I get my web app items to feed into a contact form in this way???

    Hi Peta,
    The only way I can see this done in is to add the web app items to a cookie using JS and then when they go to web form to populate the hidden form field with the values from that cookie. That's the only way to do it unless you want to use the shopping cart functionality.
    Cheers,
    -mario

  • How can I restrict Adobe Creative Cloud to run for just one mac user?

    Can anyone help with this please ...
    (This is about how the Adobe Creative Cloud app works with OS X User accounts.  I have posted it on Adobe's Support forums, but nobody there had the solution.  Perhaps someone from the Apple/OSX end can help?)
    I'm running Adobe CC on a 2010 iMac (OS X Yosemite).  I'm delighted with it, however ...
    Several family members share the same iMac using separate user accounts.  Adobe CC seems to run on startup for all of them which is annoying for them as they get messages about updates etc, plus it takes up unnecessary system resources (particularly as we tend to use 'switch user' and Activity Monitor shows an instance of Adobe CC running for each user).
    It's not listed in the Login Items list under System Preferences->Users & Groups, so I can't disable it there for other users, However it appears as an icon in the menu bar for any/all users a few moments after logging in - so something is triggering it to run, but I can't see what. 
    How can I restrict Adobe CC to run just for my user account please?
    Thanks
    Richard

    The startup item is likely inside the /Library/LaunchAgents folder.
    It will be something named like com.adobe.creativecloud.plist.
    Move it out of the /Library/LaunchAgents folder into the User/Library/LaunchAgents folder for all the users that need it.
    I don't know if it will work, but as long as Adobe wrote the launch agent correctly, it will work. Given that it is Adobe we're talking about, my bet is no.

  • Set Disable or Expiry Date for web app item via Edit form

    I have a user that wants to delete a web app item from a secure zone edit form, but they are not the owner of that web app item.  All items in the web app were imported via a csv file and hence do not have a 'submitted by' user id assigned.
    Is it possible to Disable a web app item using a web app Edit form?  or alternatively, is it possible to set the Expiry Date of a web app item using a web app Edit form?
    Thanks
    Dave

    Sorry Brian, but I'm not sure that answers my question.
    Sure, I can create a single web app item for every single client of my customer, manually.
    Sure, I can create and 'allocate' that single web app item to each customer manually.
    I pray the customer doesn't have hundreds of clients. And I would have to teach my customer how to do this convoluted process for every new client.
    But the one thing this doesn't do is answer the question of updating the value of units held.
    It seems the order module remains the closes to what I am looking for in that it allows an equation, and is automatically customer specific.
    However, I am looking for a way to achieve a single daily update by the customer as to the value of the units held by each client. This can be done via the product module - update price. But this does not update existing orders. Exisitng orders are fixed at the price on the day. The customer wants to update the value once, in one place, and have that amend all existing 'orders' to reflect the new total value of units held by each individual client, and to have this show in each client's member area.
    If you can think of a way of doing this in webapps or via the order module, this is what I am looking for. Anyone?

  • How would you limit the number of Web App items a user can enter.

    I am creating a web app where people can list objects/items. I want to offer plans that will enable users to enter up to a predefined number of entries and no more than what they paid to enter. They can then come back as often as they wish during their subscription period to update, create, and/or delete entries ( but again, never more than what thier subscription entitles them ).
    Fore sake of illustration.
    User Plan 1 entitles user to enter 1 web app item,
    while
    User Plan 2 entitle user to enter 3 web app items, and
    User Plan 3 entitles user to enter 5 web app items.
    These are annual plans.
    Any ideas?

    Hi,
    As per your query you can not define to any user for schedule selected background jobs. I hope you are clear for this.
    Anil

  • How to sort web app items based on few fields of it on search result page?

    I have a web app and its search. The search results are on multiple pages means it has pagination. My client's requirement is to have a feature which will sort results based on some web app items. for example we have a field price so when user select the price it needs to sort from high to low. Any one have idea how to do it?

    I have just been playing around with this for something else, all you need to do is duplicate your price field into the weighting field and it will automatically sort from High to low for you.
    Cheers
    Duncan

  • Multiple users, using the same web app items?

    Iam building a service for familes were the parents should be able to read / add / edit the same secure web app items.
    So when logged in the user have access to the same user submitted web app items.
    I found a thread answerd by Liam and my guess this is not possible? Can it be partial be done e.g. just let the "family" read the familys items? And no there is not possible to add / pair the users in backend because there are to many.
    Any tip where to look? I have tried to use the "uniqe ID, datasource, unique template" method but do you "wizards" :-) think that's the way to go?
    This thread suggest it's not doable.
    http://forums.adobe.com/message/5547102
    Thanks!
    //Johan
    Formpartner

    Not in association Johan no.
    You can have one "Family" login they all use to log in but it will kick one out if the other logs in and of course, multiple people sharing the same login increases the security risk.
    You can only set one owner as well.

Maybe you are looking for