ptomter Posted March 5, 2019 Share Posted March 5, 2019 (edited) I have created some customs fields in WHMCS that I now wish to use in a custom provisining module. What is the best way to pass the value information from the client into the script? Please advice, highly appriciate the help Can I use something like this perhaps.. ".$params["customfields$Customfieldname"]." Edited March 5, 2019 by ptomter 0 Quote Link to comment Share on other sites More sharing options...
ptomter Posted March 5, 2019 Author Share Posted March 5, 2019 Tried also if ($params["customfields$Customfieldname"]) { But somehow its not getting the field data passed on to the module. Please advice 0 Quote Link to comment Share on other sites More sharing options...
ptomter Posted March 5, 2019 Author Share Posted March 5, 2019 Tried (!$clientdata["customfields"]["CustomFieldname"]) 0 Quote Link to comment Share on other sites More sharing options...
ptomter Posted March 5, 2019 Author Share Posted March 5, 2019 Tried $params["clientsdetails"]["customfields"]["Name"] *one of theese days* 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted March 5, 2019 Share Posted March 5, 2019 There is a difference between client custom fields, like the other thread you posted in talks about, and service custom fields. So, which one do you want? You mix them in your post wall above, so want to confirm. 0 Quote Link to comment Share on other sites More sharing options...
ptomter Posted March 5, 2019 Author Share Posted March 5, 2019 Just now, steven99 said: There is a difference between client custom fields, like the other thread you posted in talks about, and service custom fields. So, which one do you want? You mix them in your post wall above, so want to confirm. 1) I have created custom fields in Setup - Custom Clients Fields 2) On clients they have their information in their custom clients fields 3) This custom value would I like to use in my custom module. Sorry for any misunderstanding, and I highly appriciate you taking the time. 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted March 5, 2019 Share Posted March 5, 2019 Okay, then please check my reply in that thread to get just the client custom fields as you have described. Post there if you are having problems with getting those custom fields as it should not matter where you call it from as long as you have the client id.. Standard provisioning module functions should also provide the service custom fields in $params['customfields']['Field_Name'] -- again those are different than client custom fields. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.